Commit graph

1225 commits

Author SHA1 Message Date
Juuz
b7d188881d EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot ()
(cherry picked from commit 09a3510c69)
(cherry picked from commit 71b82573d8)
2023-03-15 10:45:52 +00:00
TelepathicGrunt
16f1e31314 Fixed end biome source injection ()
(cherry picked from commit 348a9c6486)

(cherry picked from commit f1c68e5823)
2023-03-15 10:45:45 +00:00
Michael
68a20504ee Add 'Windswept Hills' biome convention tag ()
* add windswept biome tag

* change windswept tag to windswept hills

* list out biomes and revert name change

(cherry picked from commit 1b664772cf)
2023-03-15 10:44:34 +00:00
Madis Otenurm
e960d55b0d Update et_ee.json ()
(cherry picked from commit 09aba064e4)
2023-03-15 10:44:31 +00:00
modmuss50
cb8186d4a3 Bump version 2023-02-24 10:05:25 +00:00
Technici4n
cafc6e8e14 Fix : deprecate item functions in BlockRenderLayerMap ()
(cherry picked from commit c2e6f67424)
(cherry picked from commit 928d44d5ce)
2023-02-24 09:52:38 +00:00
modmuss50
e500c1746f Bump version 2023-02-23 12:58:58 +00:00
PepperCode1
1adbf277ee Indigo shade related fixes and other changes ()
* Apply disabled shade from vanilla quads directly to material

- Remove QuadViewImpl.shade

* Fix enhanced AO calculation and respect non-terrain culling state

- Fix AoCalculator using AO face data computed with a potentially different shade state
- Move non-cached computation code to separate method in AoCalculator
- Turn AoCalculator's brightnessFunc and aoFunc into abstract methods
- Do not check null check world in non-terrain AO calculation since it cannot be null
- Pass through lightFace and shade state as method arguments in AoCalculator methods to prevent additional lookups
- Do not check for the axis aligned flag in AbstractQuadRenderer.shadeFlatQuad
- Respect cull parameter passed to non-terrain rendering by merging TerrainBlockRenderInfo into BlockRenderInfo
- Use reusable search pos when calling Block.shouldDrawSide to prevent additional BlockPos allocation
- Change BlockRenderContext.render and TerrainRenderContext.tessellateBlock to return void since return value is no longer used
- Remove QuadViewImpl.vertexStart since it is unused

* Add suggestions

- Mark Direction parameter to BlockRenderInfo.shouldDrawFace as Nullable
- Reuse MaterialFinder in FrameBakedModel

(cherry picked from commit 3a95925af4)
2023-02-23 10:22:45 +00:00
modmuss50
3534f7ab4e Bump versions 2023-01-31 10:28:22 +00:00
modmuss50
dce4603ed4 Fix vanilla behaviour change causing Dragon Breath's to leave an empty Glass Bottle in Brewing Stand ()
This fix restores the previouslly broken behaviour of item remainders in brewing stands.

(cherry picked from commit 312c329484)
2023-01-31 10:20:11 +00:00
BasiqueEvangelist
8f4e8eb3e4 Fix memory leak by using weak set for ArrayBackedEvent list ()
* use weak set for array backed events list

* use thread safe map

(cherry picked from commit 70be179cf3)
2023-01-31 08:59:11 +00:00
Technici4n
18e3ca5179 Bump version 2023-01-20 19:10:13 +00:00
Technici4n
693ffc0581 Fix ItemStack.EMPTY.getItem() rarely returning null due to threading ()
* Fix ItemStack.EMPTY.getItem() rarely returning null due to threading

* Overwrite instead

(cherry picked from commit c3530bb1c6)
2023-01-20 18:08:00 +00:00
AlphaMode
d8ef6908eb
[1.19.2] Implement custom SignTypes ()
* Implement custom SingTypes

* Update fabric-rendering-v1/src/testmod/resources/fabric-rendering-v1-testmod.mixins.json

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Replace transitive access widener with SignTypeRegistry

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/sign/SignTypeRegistry.java

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/sign/SignTypeRegistry.java

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/sign/SignTypeRegistry.java

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Move sign types to object builder api

* Make TexturedRenderLayersMixin more direct

* Fix java doc

* Fix test mod still using the rendering api namespace

* Add teal sign item texture

* Add lang for Teal Sign

* Make checkstyle happy

* Replace accessor with accesswidener

* Apply suggestions from code review

* Fix build

* Rename local vars

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2023-01-20 17:56:28 +00:00
modmuss50
151944f27f Bump versions 2023-01-05 13:35:12 +00:00
Technici4n
413cbbc764 Two Transfer API fixes ()
* Fix : Double chest wrapper not always updating both halves

* Fix : Make creative ContainerItemContext give unique items to the play

(cherry picked from commit ccd377ba6b)
2023-01-05 13:15:02 +00:00
apple502j
61111d0e8a Entity Selector Option API ()
* Entity Selector Option API

* Fix compile error

* Add default impl

* Apply suggestions from code review

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>

Co-authored-by: modmuss50 <modmuss50@gmail.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
(cherry picked from commit 3fc4752e4f)
2023-01-05 13:08:49 +00:00
modmuss50
6ed476d6fa add fabric-recipe-api-v1: Custom ingredients ()
* Fabric custom ingredient API

* More Ingredient API work

* Optimize shapeless matching logic

* Fix all the things

* Move custom ingredient network serialization to account for ingredient extension API

* Apply suggestions from code review

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>

* Address 🍎 review

* Get rid of the @Overwrite

* Implement graceful fallback for clients not supporting some custom ingredients

* Move custom ingredient code to new Recipe API module

* Fix client package change

* Address review comments

- And/Or -> All/Any
- Move builtin ingredient registration to entrypoint
- Initial protocol version is 1
- Misc other changes

* Add testing instructions

* Use a List for `getMatchingStacks`

* Overengineer ingredient query a bit

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit 5176f73dbb)
2023-01-05 13:08:25 +00:00
modmuss50
64bd380d4d Bump versions 2023-01-02 14:36:09 +00:00
apple502j
82db024a24 Biome modification API small enhancements ()
* Allow OptionalInt in BiomeModificationContext

For some reason, vanilla uses `Optional<Integer>` instead of
the preferred `OptionalInt`. Add an override that allows passing
`OptionalInt`. For consistency with vanilla, the old method is NOT
deprecated.

* Do not rely on Identifier identity when checking registration

`Identifier` is a value-based class and should never be compared
using `==`. Luckily, this does not cause bugs right now.
(Using `equals` is worse, since it'll prevent spawning pigs.)
Instead use the proper method of checking if an entry is registered.

* Fix 

(cherry picked from commit b5d379b004)
2023-01-02 14:16:57 +00:00
Shnupbups
2d2baf4bf6 Fixed blocks with vanilla loot tables making strict validation of datagen fail ()
* Fixed blocks with vanilla loot tables making strict validation of datagen fail

Previously, blocks that used `.dropsLike(block)` in their block settings to use a vanilla block's loot table, or `.dropsNothing()` to use the `minecraft:empty` loot table, would cause strict validation in data generation to fail as the vanilla loot tables wouldn't be present in the mod's own block loot table generator.

This fixes that by ensuring that the block's loot table ID has a namespace that matches the loot table generator before adding it to the missing IDs list.

Two test blocks were added to the testmod, one which uses `.dropsLike(Blocks.STONE)` to use the same loot table as Stone, and one that uses `.dropsNothing()`. Previously, these would have caused strict validation to fail as the `minecraft:stone` and `minecraft:empty` loot tables aren't generated by the testmod's generator. Now they pass just fine.

* Fixed blocks with vanilla loot tables making strict validation of datagen fail

Previously, blocks that used `.dropsLike(block)` in their block settings to use a vanilla block's loot table, or `.dropsNothing()` to use the `minecraft:empty` loot table, would cause strict validation in data generation to fail as the vanilla loot tables wouldn't be present in the mod's own block loot table generator.

This fixes that by ensuring that the block's loot table ID has a namespace that matches the loot table generator before adding it to the missing IDs list.

Two test blocks were added to the testmod, one which uses `.dropsLike(Blocks.STONE)` to use the same loot table as Stone, and one that uses `.dropsNothing()`. Previously, these would have caused strict validation to fail as the `minecraft:stone` and `minecraft:empty` loot tables aren't generated by the testmod's generator. Now they pass just fine.

(cherry picked from commit 87855a703c)
2023-01-02 13:13:21 +00:00
Technici4n
562bff6e4c Interaction events fixes ()
* Deprecate `BlockAttackInteractionAware`

* Document PickBlock events, fix nullability and edge case

* Fix `UseEntityCallback` usability and documentation. Fixes . Fixes .

(cherry picked from commit 3baeb27ac3)
2023-01-02 13:09:49 +00:00
Technici4n
2e5408b563 Indigo and Renderer API fixes related to fallback consumers ()
* Fix : Indigo fallback consumer does not respect BlendMode or emissivity

* Change renderer testmod to test material change

* Remove presumably unneeded `quad.geometryFlags()` call

* Also test emissivity

* Call emitBlockQuads in the testmod

* Allow passing the block state explicitly to the fallback consumer. Fixes 

* Expand testmod to also test item models

* Also fix fallback consumer ignoring material for items

* Slight changes

* Introduce new interface for the expanded fallback consumer

* Add javadoc to ModelHelper

(cherry picked from commit 9f179aa14c)
2023-01-02 13:09:44 +00:00
apple502j
5c4fce2850 Keybindings API: New Years cleanup ()
* Keybindings API: New Years cleanup

* Remove throws

(cherry picked from commit bc01e09759)
2023-01-02 13:07:46 +00:00
Silver
9785ec356d Replace old nullability comments with annotations ()
* Replace useless nullability comments with jetbrains annotation

* These were old comments

* Revert "These were old comments"

This reverts commit 4e9555ad51.

* checkstyle + nullability in mixin

(cherry picked from commit e498f5f0a9)
2023-01-02 13:07:42 +00:00
apple502j
10eb22f456 Catch exception inside client-side JOIN event ()
* Catch exception inside client-side JOIN event

* Update fabric-networking-api-v1/src/client/java/net/fabricmc/fabric/impl/networking/client/ClientPlayNetworkAddon.java

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
(cherry picked from commit 4017a8cb18)
2023-01-02 13:07:38 +00:00
modmuss50
3e1e13ab8f Bump versions 2022-12-23 18:04:07 +00:00
Technici4n
1b46dc7866 Block Entity Lifecycle fixes ()
- Fire client chunk unload event when the load distance is decreased.
  Fixes .
- Fire client chunk unload event before entities are cleared from the
  chunk to fix block entity unload event not firing.
  Clarify that block entity data is unreliable in the block entity load
  events.
  Fixes .

(cherry picked from commit 23a79c8a40)
2022-12-23 16:35:13 +00:00
Technici4n
251d254ae1 Don't break the ordering of ResourcePackProviders ()
Fixes .

(cherry picked from commit a91e48b70e)
2022-12-23 16:35:09 +00:00
Miku
63b2489b25 Add Traditional Chinese ()
(cherry picked from commit a67331efe6)
2022-12-23 16:34:45 +00:00
Daomephsta
7c6cd14d84
API for brewing recipes which use Ingredients instead of Items ()
* API for brewing recipes which use Ingredients instead of Items

* Improve comments and JavaDoc

* Update mixin compatibility level

* Replace accessor mixin with access widener

* Fix double space

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2022-12-23 15:32:15 +00:00
AlphaMode
08b73de4d1
Deprecated BlockEntityRendererRegistry in favor of vanilla's BlockEntityRendererFactories ()
* Deprecated BlockEntityRendererRegistry in favor of vanilla's BlockEntityRendererFactories

* Undo unintended change

* Update fabric-transitive-access-wideners-v1/src/main/resources/fabric-transitive-access-wideners-v1.accesswidener

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>

* Update BlockEntityRendererRegistry javadoc to match others

* Implement sign renderer test

* Fix template

* Change SignTestBlockEntity to SignBlockEntityTest

Co-authored-by: haykam821 <24855774+haykam821@users.noreply.github.com>
2022-12-23 15:32:04 +00:00
Technici4n
a9097c1907 Fix : Allow querying registered DynamicItemRenderers ()
(cherry picked from commit 0b401b6a39)
2022-12-23 15:30:53 +00:00
apple502j
4d0d57038f Javadoc and typo fixes ()
(cherry picked from commit f1e4495b13)
2022-12-23 15:30:50 +00:00
Sideroo
e415d50e90 Fix block api resources path ()
(cherry picked from commit e022e5d10c)
2022-12-23 15:30:48 +00:00
modmuss50
6e0787e663 Small Cleanups ()
* ServerLoginNetworking javadoc fix

* Improve Rendering Data Attachment javadocs. Fixes 

* Deprecate `NbtType`. Fixes 

* Remove redundancy

(cherry picked from commit afca2f3e33)
2022-12-23 15:30:42 +00:00
Technici4n
b6b6abb47f Fix : Long enum gamerule name hidden by button ()
(cherry picked from commit 422b0dd1b3)
2022-12-23 15:27:34 +00:00
modmuss50
c99de4d0d0 Disable the gametest command on the server by default. ()
Adds the "fabric-api.gametest.command" system property to enable/disable.

(cherry picked from commit 71a65ec322)
2022-12-23 15:27:31 +00:00
modmuss50
82198ac2c7 Fix disconnect screen scissoring on high-resolution displays ()
(cherry picked from commit a16aaf981b)
2022-12-23 15:27:29 +00:00
modmuss50
0f74304b0e Update signing Gradle plugin 2022-12-11 15:41:34 +00:00
modmuss50
3729a30a41 Bump version 2022-12-11 14:32:15 +00:00
Teddy Li
574a764801 Load default translations from all namespaces on the server ()
* Introduce fabric:server-language-namespaces custom meta to fabric-resource-loader-v0 (extension of )

* Fix testmod assertion message

* Automatically detect every en_us.json files in mod container
Remove fabric:server-language-namespaces custom meta detection

* Remove unused custom field in fabric.mod.json

* Update license

* Update style

* cleanup format

* Fix checkstyle, move constructor

Co-authored-by: modmuss50 <modmuss50@gmail.com>
(cherry picked from commit a10d22bd14)
2022-12-11 14:12:51 +00:00
apple502j
e4fecd81f0 GameTest: improve javadoc ()
(cherry picked from commit a9337210f9)
2022-12-11 14:12:43 +00:00
miir
27265b3409 Add c:shields convention tag ()
* add shield tag

* regenerata data

Co-authored-by: itsmiir <itsmiir@users.noreply.github.com>
(cherry picked from commit 8e4e694f3d)
2022-12-11 14:12:40 +00:00
Juuz
b0bc9a679c Screen API: Fix MinecraftClientMixin overwriting the vanilla logger ()
(cherry picked from commit 1d4d0b5795)
2022-12-11 14:12:37 +00:00
modmuss50
5d5f11fb3d Bump version 2022-11-29 18:34:50 +00:00
apple502j
3b1d070f49 Networking: fix type of created packet ()
(cherry picked from commit d9ac3c39e0)
2022-11-29 18:11:36 +00:00
Technici4n
6eb9a2a153 AttackBlockCallback: creative fix and javadoc update ()
* AttackBlockCallback: creative fix and block break delay

* More return value clarifications

* Revert CONSUME_PARTIAL behavior

* Apply suggestions from code review

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
(cherry picked from commit 422b77fbfd)
2022-11-29 18:09:25 +00:00
Technici4n
e7aeff4505 Add BakedModel unwrapping API ()
* Add BakedModel unwrapping API

* Allow WrapperBakedModel to not have an inner model

(cherry picked from commit 2063beff56)
2022-11-29 18:09:21 +00:00
modmuss50
0ac263625e Bump version 2022-11-22 17:01:50 +00:00