Commit graph

1728 commits

Author SHA1 Message Date
Juuxel
616c2e29a4 Add methods for setting multiple objects' render layer with one call 2019-11-28 19:42:57 +00:00
modmuss50
06c939b35c 1.15-pre3 - just mapping changes 2019-11-28 19:40:14 +00:00
grondag
1e5e53014d Fix gui item rendering (issue #412 PR #443) 2019-11-28 08:03:04 +00:00
Player
5a0f9a60f7 Fix checkstyle package check using client/server as the module name and missing suffix validation, adapt missed fabric-renderer-registry package 2019-11-27 13:24:36 +01:00
modmuss50
2775144ad8 Fix NPE in MixinChunkRebuildTask Closes #436 2019-11-26 15:37:59 +00:00
Player
7fe423d1a5 Fix BER registration accessing dispatcher instance through uninitialized
field
2019-11-26 08:48:32 +00:00
modmuss50
a1ff8ff878 Rework the BlockEntityRenderer api to fix load order issues.
Based off the work from #430

Co-authored-by: Draylar <samuelhimes@gmail.com>
2019-11-25 19:54:56 +00:00
modmuss50
dd84212848 Merge remote-tracking branch 'origin/1.15' into 1.15 2019-11-25 19:28:21 +00:00
modmuss50
e08a7305d5 1.15-pre2 2019-11-25 19:28:07 +00:00
Draylar
e4c9a9c3af Add nonOpaque to FabricBlockSettings (#434)
* add nonOpaque FabricBlockSettings builder method

* module version bump (0.1.2 -> 0.1.3)
2019-11-24 10:54:48 +00:00
modmuss50
264dbbc635 Fix ClientSpriteRegistryCallback not being called for some SpriteAtlases
fabric_localIds is no longer needed as all atlases have their own id now.
2019-11-22 21:24:12 +00:00
modmuss50
f3d8141bae 1.15-pre1 2019-11-21 21:04:17 +00:00
Player
6d6e6117b4 Fix checkstyle config not supporting windows line endings 2019-11-13 18:46:19 +01:00
modmuss50
6c2678816a 19w46a 2019-11-13 17:41:46 +00:00
modmuss50
f947d671a1 19w45b + Fix missed optional mixin fixes
MixinChunkRebuildTask should have been ported yesterday, but it was only logging out a warning.
2019-11-08 13:23:12 +00:00
modmuss50
58e820e06c Fix style errors.
Sorry player.
2019-11-07 20:39:57 +00:00
modmuss50
12515ed9ee 19w45a 2019-11-07 20:35:26 +00:00
Player
b7f9825dbb Add checkstyle verification for package names, fix non-API packages. 2019-11-03 20:14:45 +01:00
modmuss50
ce77399215 19w44a
Only yarn renames
2019-10-30 17:10:30 +00:00
Player
dfdb52d6e5 Add checkstyle, format existing code accordingly. 2019-10-27 15:40:26 +01:00
Mark J
d1753d4af9
Fix BlockRenderLayerMapImpl no longer working in 19w42a. Move some LOG.warns to InvalidParameterException (#409)
* Fix BlockRenderLayerMapImpl no longer working in 19w42a. Move some LOG.warns to InvalidParameterException

In 19w42a new class (class_4699) that contains 3 maps for Item, Block and Fluid RenderLayers.
Before these maps were in the RenderLayer class causing them to be populated well before this API had a chance to get to handling the consumers.

I have tweaked the impl to handle RenderLayers being added before initialize is called and after, this removes the need to ensure the class load order is correct.

* quick cleanup

* InvalidParameterException -> IllegalArgumentException

* Move to single lines + add a blank line
2019-10-19 19:29:57 +01:00
grondag
b8dee3c017 Fix breaking render for API models (#406)
* Fix breaking render for API models

* Bump versions
2019-10-19 19:29:48 +01:00
grondag
0f869edf26 Fix indigo rendering in 19w42a (#405)
* Fix indigo rendering in 19w42a
* Prevent crashes for modded item rendering

VertexConsumer now thows unless all vertex elements are populated.  Overlay UV coordinates are thus required for block breaking, item glint, etc.  Block breaking doesn't seem to work fully for non-vanilla models, but cause isn't yet clear.
2019-10-17 15:54:54 +00:00
Player
38a28ddb59 Version bump 2019-10-17 00:27:10 +02:00
liach
67f1526c06 Allows generic event declaration
Signed-off-by: liach <liach@users.noreply.github.com>
2019-10-16 22:20:34 +00:00
modmuss50
d2e3099f39 19w42a
Includes a work around for the funky rendering issues, this will need looking into some more.
2019-10-16 18:54:16 +01:00
modmuss50
ccd269cfad 19w41a 2019-10-09 19:05:13 +01:00
modmuss50
da5bc0bb05 19w40a 2019-10-02 15:48:19 +01:00
grondag
32ac36d518
1.14 Updates and Render Fixes (#394)
* Fix EntityRenderDispatcher hook (again)

* Add fabric-particles-v1

* Add a sync() method to BlockEntityClientSerializable

* Prevent CME due to off-thread block entity updates (#367)

* Restore rendering features disabled in first 19w39a release

* Remove rendering stuffs no longer needed due to snapshots

* Bump versions as needed
2019-09-29 18:21:38 -07:00
grondag
f8c11fca6f
Fix EntityRendererRegistry crashes (#392)
* Move EntityRenderDispatcher init hook (#390)

Fixes FabricMC/fabric#389

* Bump API patch version

* Bump renderer registries patch version
2019-09-29 15:09:46 -07:00
Modmuss50
9c45b1ef78 Wip 19w39a (#386)
* 19w39a fixes (#387)

* Bump versions

* Breaks: BlockEntityRendererRegistry and EntityRendererRegistry

* Remove broken parts of rendering, bump major version

* Add renderer-registries, replaces broken parts of rendering api

* Slap a band-aid on renderer/Indigo - won't render properly, but runs

* Bump distribution versions, add renderer-registries to main build

* Clean up blockrenderlayer implementation package name
2019-09-28 18:07:04 -07:00
grondag
128a6b25c0
Bump patch number on Renderer API
Neglected to increment this in last PR.  May also fix #379.
2019-09-24 18:36:56 -07:00
grondag
a5d709c3e1
1.15 Rendering Cleanup (#376)
* Make whitespace more consistent with Fabric norms
* Remove implementation of disabled multi-sprite quad feature
* Simplify quad header encoding - most attributes are now directly encoded to array data
* Simplify material encoding - exploiting low number of possible materials
* Add minimal validations related to sprite index
* Codify magic numbers and make derivations more clear/explicit
* Fix defect #374
* Bump patch versions
* Use unmodified vanilla AO calculator
2019-09-24 07:27:27 -07:00
grondag
96946203be
Bring dimension API to 1.15 branch (#373)
* Update versioning to match 1.15 branch

* Fix builtin mods being added as resource packs

* Update fabric-loader to replace deprecated methods

* Add more metadata to the modules (#353)

* Add fabric-api-base as a dep to fabric-networking-v0

* Allow for running fabric-api-base on the server-side environment (#360)

* Set curse version to 1.14.4
Also forces it to build again

* Fix NPE in fluid renderer mixin (#361)

* Fix NPE in fluid renderer mixin
* Ensure state, view, and pos are never null
* Bump fabric-rendering-fluids-v1 version

* Cooler dimension API, #309 (#319)

* pyro API

* Update fabric-dimensions-v1/src/main/java/net/fabricmc/fabric/api/dimension/EntityPlacer.java

clarify portalDir param

Co-Authored-By: Pyrofab <redstoneinfire@gmail.com>

* Update fabric-dimensions-v1/src/main/java/net/fabricmc/fabric/api/dimension/EntityPlacer.java

rename & clarify verticalOffset param

Co-Authored-By: Pyrofab <redstoneinfire@gmail.com>

* Update fabric-dimensions-v1/src/main/java/net/fabricmc/fabric/api/dimension/FabricDimensions.java

Co-Authored-By: Pyrofab <redstoneinfire@gmail.com>

* Update fabric-dimensions-v1/src/main/java/net/fabricmc/fabric/api/dimension/EntityPlacer.java

Co-Authored-By: Pyrofab <redstoneinfire@gmail.com>

* update parameter

* Add fabric-networking and fabric-registry-sync to dependencies

* Refactor FabricDimensionType to use a builder

Also adds a desiredRawId field separate from the actual raw
id fixed internally. The fixedRawId field is now set by
DimensionIdsFixer through reflection.
This change addresses concerns about the ability for any mod
to set a FabricDimensionType's raw id at any time.

* Improve javadoc of FabricDimensions#teleport

* Add an overload for FabricDimensions#teleport

* Update javadoc on DimensionIdsFixer

* Inline clientside packet handling

* Add side assertions to FabricDimensions#teleport

* Nuke minecraft's attempts to overwrite bad level properties

* Add license headers

* Reformat dimension API source code

* Update FabricDimensionType javadoc

* Remove redundant ThreadLocal from FabricDimensionInternals

* Fix crash on dedicated servers

* Fix Illegal Access during remapping

* Fix dimension remap exception propagation

* clarify EntityPlacer docs

* spacing fixes

* api.dimension -> api.dimension.v1

* Increment API patch version

Signifies inclusion of new Dimension API

* Partial fix to FabricDimensionType

* Bump dimension version

* Updates based on feedback
2019-09-22 08:32:08 -07:00
modmuss50
c208a44d66 Merge remote-tracking branch 'origin/1.15' into 1.15
# Conflicts:
#	fabric-events-interaction-v0/build.gradle
2019-09-21 11:30:30 +01:00
grondag
d2ac651a7a
19w38b API Fixes (#370)
* Fix compilation errors (untested)

* Random fixes

* Various modded rendering fixes

* Restore contract of RenderAttachedBlockView

* Bump versions as needed

* Add API for BlockRenderLayer

* Minor format / name cleanup

Will do a more comprehensive pass as part of separate refactor PR

* Bump versions not handled earlier

* Bump loader/mc bounds for dependent modules

* Update fabric-blockrenderlayer-v1/src/main/java/net/fabricmc/fabric/impl/blockrenderlayer/v1/BlockRenderLayerMapImpl.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Update fabric-blockrenderlayer-v1/src/main/java/net/fabricmc/fabric/impl/blockrenderlayer/v1/BlockRenderLayerMapImpl.java

Co-Authored-By: liach <7806504+liach@users.noreply.github.com>

* Minor clean ups

* Improve docs, minor format corrections.

* Update MC dependency
2019-09-20 16:50:49 -07:00
modmuss50
d32291da65 Fix resource-loader 2019-09-18 23:24:15 +01:00
modmuss50
9c15c890d1 Update mappings 2019-09-18 19:01:22 +01:00
modmuss50
7533b848b5 19w38b - start the port, does not compile just yet. 2019-09-18 18:16:25 +01:00
liach
7eee2bafa3 Update UseItemCallback to 19w37a
* A fix for #364

Signed-off-by: liach <liach@users.noreply.github.com>

* Version to 0.2.0
2019-09-13 20:01:21 +01:00
Virtuoel
bcce83c829 Fix NPE in fluid renderer mixin (#361)
* Fix NPE in fluid renderer mixin
* Ensure state, view, and pos are never null
* Bump fabric-rendering-fluids-v1 version
2019-09-12 04:15:11 +02:00
modmuss50
6b7b8bda7b 19w37a - the same. 2019-09-11 16:42:09 +01:00
parly
2d1f5b3a69 Allow for running fabric-api-base on the server-side environment (#360) 2019-09-09 14:04:22 +01:00
Prospector
5ed88c193a Add more metadata to the modules (#353)
* Add fabric-api-base as a dep to fabric-networking-v0
2019-09-09 01:48:43 +02:00
modmuss50
413f3d6055 19w36a some biome changes 2019-09-05 12:04:07 +01:00
modmuss50
b4f62fb5a7 Update fabric-loader to replace deprecated methods 2019-08-28 22:17:50 +01:00
modmuss50
d1f89c1d5e Fix builtin mods being added as resource packs 2019-08-28 20:00:17 +01:00
modmuss50
27da48aaf2 19w35a 2019-08-28 18:59:15 +01:00
modmuss50
d7b19f7e1c Remove remote name from branch 2019-08-27 20:40:07 +01:00
modmuss50
65dbd72c87 Fix branch name on jenkins 2019-08-27 20:26:27 +01:00