Commit graph

1310 commits

Author SHA1 Message Date
modmuss50
926dc7fcc3 Bump version 2023-04-11 10:05:29 +01:00
Poodn
2961b4a092 Add missing error message argument in ClientCommandInternals(#2988)
Fixed a translation bug where "command.context.parse_error" was translated with two arguments, while it takes three as input.
2023-04-11 09:55:52 +01:00
Julian Burner
b93ffe4d9c
Fix ProgrammerArtResourcePack::getName (#2997) 2023-04-11 09:50:23 +01:00
modmuss50
cc29889de0 Bump version 2023-03-15 12:29:34 +00:00
Julian Burner
68296ad5e5
Restore Programmer Art injection support (1.19.3) (#2957)
* Restore Programmer Art resource pack injection support

* Add Programmer Art injection testmod

* Fix license formatting

* Remove unnecessary `@Environment` annotation
2023-03-15 12:00:49 +00:00
RawDiamondMC
93582b958a Create zh_cn.json (#2945)
(cherry picked from commit 9af20fd751)
2023-03-15 10:41:22 +00:00
Alpha
eeb6cf31c4 Update ko_kr.json (#2927) (#2941)
* Update ko_kr.json

* fix typo

(cherry picked from commit 930b8d421f)
2023-03-15 10:41:20 +00:00
Amirhan-Taipovjan-Greatest-I
b5470ac796 Tatar Translation for Fabric API. (#2936)
* Tatar Translation for 1.19.4

* Tatar Translations for 1.19.4

(cherry picked from commit 043f9acfad)
2023-03-15 10:41:18 +00:00
Yoosk
8368a8beca Update pl_pl.json (#2929)
(cherry picked from commit 36d2fcce10)
2023-03-15 10:41:12 +00:00
Maity
521b5c52a5 Conventional Biome Tags tweaks (#2955)
* Birch Forest Tag #2330

* Fix #2649

* Run datagen

(cherry picked from commit 315602f6c2)
2023-03-15 10:40:48 +00:00
Juuz
71b82573d8 EquipmentSlotProvider: Add javadoc link to getPreferredEquipmentSlot (#2935)
(cherry picked from commit 09a3510c69)
2023-03-15 10:40:46 +00:00
TelepathicGrunt
f1c68e5823 Fixed end biome source injection (#2940)
(cherry picked from commit 348a9c6486)
2023-03-15 10:40:42 +00:00
Michael
1b664772cf
Add 'Windswept Hills' biome convention tag (#2878)
* add windswept biome tag

* change windswept tag to windswept hills

* list out biomes and revert name change
2023-03-15 09:35:58 +00:00
Madis Otenurm
09aba064e4
Update et_ee.json (#2894) 2023-03-15 09:24:41 +00:00
Juuz
ad177755a6
Add registry for core shaders in custom namespaces (#2901)
* Add registry for core shaders in custom namespaces

* Apply suggestions from code review

Co-authored-by: modmuss50 <modmuss50@gmail.com>

* Use Identifier.NAMESPACE_SEPARATOR instead of ":"

* Remove fabric_ prefixes from mixins

* Move test rendering to lower-right corner for test screenshots

---------

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2023-03-15 09:15:40 +00:00
modmuss50
4c3c5bfdf5 Bump version 2023-02-24 10:05:39 +00:00
Technici4n
928d44d5ce Fix #2925: deprecate item functions in BlockRenderLayerMap (#2930)
(cherry picked from commit c2e6f67424)
2023-02-24 09:52:16 +00:00
modmuss50
47e2d89bd3 Bump version 2023-02-23 12:59:05 +00:00
Kevin
c85585f870
Added Client Message Events (#2646)
* Added Client Message Events

* Applied suggestions and fixed checkstyle

* Inject before fabric-command-api and updated Javadocs

* Updated Javadocs regarding client commands

* Update fabric-message-api-v1/src/client/resources/fabric-message-api-v1.client.mixins.json

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

* Updated Javadocs regarding commands

* Fixed duplicated package names

* Updated ClientMessageEvents.java Javadoc

Co-authored-by: Sideroo <109681866+Sideroo@users.noreply.github.com>

* Removed duplicated client commands Javadoc

* Added cancelled sending and receiving events

* Seperated send and receive events and changed event names

* Fixed checkstyle

* Added support for modifying messages

* Added client command test

* Added narration and message indicator support for modifying received messages

* Added tests for modifying messages

* Updated ClientReceiveMessageEvents#CHAT Javadocs

* Small Javadoc fixes

* Added Modify to names

* Always narrate original message

* Removed modifying receive chat message

* Split notify and modify events

* Fixed checkstyle

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: Sideroo <109681866+Sideroo@users.noreply.github.com>
2023-02-23 10:13:47 +00:00
PepperCode1
3a95925af4
Indigo shade related fixes and other changes (#2898)
* 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
2023-02-23 10:13:38 +00:00
modmuss50
f7b4d36421
Support creating FabricRegistryBuilder with a RegistryKey, deprecate Class based APIs. (#2905)
* Fix #846

* Update javadoc.
2023-02-23 10:13:19 +00:00
modmuss50
ad80728a79 Bump versions 2023-02-13 11:10:19 +00:00
modmuss50
40dc7a94f6
Add github action to check that all resources are generated. (#2877)
* Add github action to check that all resources are generated.

* Test

* Revert "Test"

This reverts commit 8e187bc781.
2023-02-13 09:30:39 +00:00
qouteall
00a2eb1095
Fix cannot load world after uninstalling dimension mod/datapack without breaking world presets. (#2856)
* Fix the issue that cannot load world after uninstalling a dimension mod/datapack, by making deserialization fail-soft, instead of removing non-vanilla dimensions.

* Fix style.

* Fix license.

* Small changes to FailSoftMapCodec.

* Make FailSoftMapCodec final.

* Revert "Make FailSoftMapCodec final."

This reverts commit 0c0642a1c4.

* Use ModifyVariable and change comments.

* Remove unnecessary `equals`
2023-02-13 09:30:31 +00:00
Technici4n
e63306e015
Resource Conditions Additions (#2821)
* Resource Conditions Additions

- Add `registry_contains` condition. Closes #2548.
- Make `fabric:load_conditions` appear first in generated JSON objects.
- Uniformize implementation a bit.

* Update fabric-resource-conditions-api-v1/src/main/java/net/fabricmc/fabric/mixin/resource/conditions/DataProviderMixin.java

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

* itemsLoaded -> itemsRegistered

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-02-13 09:30:18 +00:00
apple502j
2ff127f537
GameTest: Improve structure loading (#2801)
* GameTest: improve structure loading

* Address issues

* Re-run actions

* Test missing template

* Revert "Test missing template"

This reverts commit 0e7189bf73.

* Update fabric-gametest-api-v1/src/main/java/net/fabricmc/fabric/mixin/gametest/StructureTemplateManagerMixin.java

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

---------

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-02-13 09:30:09 +00:00
modmuss50
0780111d19 Bump versions 2023-01-31 10:28:33 +00:00
modmuss50
312c329484
Fix vanilla behaviour change causing Dragon Breath's to leave an empty Glass Bottle in Brewing Stand (#2874)
This fix restores the previouslly broken behaviour of item remainders in brewing stands.
2023-01-31 10:18:30 +00:00
BasiqueEvangelist
70be179cf3
Fix memory leak by using weak set for ArrayBackedEvent list (#2848)
* use weak set for array backed events list

* use thread safe map
2023-01-31 08:54:42 +00:00
modmuss50
eff3bcb77a
Update to Loom 1.1 (#2860) 2023-01-31 08:54:35 +00:00
modmuss50
c58c474c9e Bump version 2023-01-20 19:10:24 +00:00
Technici4n
c3530bb1c6
Fix ItemStack.EMPTY.getItem() rarely returning null due to threading (#2826)
* Fix ItemStack.EMPTY.getItem() rarely returning null due to threading

* Overwrite instead
2023-01-20 18:07:18 +00:00
Mark
eb2a3ba986
[1.19.3] Implement custom SignTypes (#2832)
* 1.19.3 custom sign types

Co-authored-by: AlphaMode <26313415+alphamode@users.noreply.github.com>

* fix mixin name

Co-authored-by: AlphaMode <26313415+alphamode@users.noreply.github.com>
2023-01-20 17:56:36 +00:00
Technici4n
06937c4b07
Fix #2552: Add way to use resource conditions for block loot table datagen (#2823) 2023-01-20 17:56:11 +00:00
modmuss50
2facd44698 Bump versions 2023-01-05 13:35:20 +00:00
Technici4n
1134c5b850
Remove leftover @ApiStatus.Internal annotations and add annotation validation (#2825)
* Remove leftover `@ApiStatus.Internal` annotations and add annotation validation

* Simplify

* Simplify more

* Update gradle/validate-annotations.gradle

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

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-01-05 12:50:15 +00:00
modmuss50
abdb4ad90b
Generate a test datapack from the datagen testmod output. (#2824)
* Add a datapack zip for testing the datagen module

* Fix deprecation
2023-01-05 12:50:01 +00:00
Technici4n
ccd377ba6b
Two Transfer API fixes (#2818)
* Fix #2810: Double chest wrapper not always updating both halves

* Fix #2522: Make creative ContainerItemContext give unique items to the play
2023-01-05 12:49:51 +00:00
apple502j
3fc4752e4f
Entity Selector Option API (#2667)
* 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>
2023-01-05 12:49:30 +00:00
Technici4n
5176f73dbb
add fabric-recipe-api-v1: Custom ingredients (#2586)
* 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>
2023-01-05 12:49:19 +00:00
modmuss50
2dae9cfaf0 Bump versions 2023-01-02 14:36:27 +00:00
Technici4n
3baeb27ac3
Interaction events fixes (#2774)
* Deprecate `BlockAttackInteractionAware`

* Document PickBlock events, fix nullability and edge case

* Fix `UseEntityCallback` usability and documentation. Fixes #1260. Fixes #1870.
2023-01-02 13:06:35 +00:00
Technici4n
9f179aa14c
Indigo and Renderer API fixes related to fallback consumers (#2775)
* Fix #2639: 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 #1871

* 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
2023-01-02 13:05:49 +00:00
apple502j
b5d379b004
Biome modification API small enhancements (#2789)
* 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 #2079
2023-01-02 13:05:35 +00:00
Shnupbups
5b9a588bfd
Autogenerate Item constructor TAWs (#2795)
`generateAccessWidener` task in TAW module will now automatically generate TAWs for the constructors of non-abstract item classes, similar to how it already did so for blocks.
As such, previously manually added item constructor TAWs have been removed from the template. This also means that `HoeItem` is now TAW'd. (I totally overlooked it earlier... whoops!)
2023-01-02 13:05:24 +00:00
apple502j
85f102ee1a
Object builder API updates (#2798)
* Add feature support to FabricEntityTypeBuilder

* Use IdentityHashMap for EntityType-keyed maps

* Improve tests

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/entity/FabricEntityTypeBuilder.java

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

* Fix naming of static-final field

* Address some reviews

* Rebuild

* Split gametest

* Update fabric-object-builder-api-v1/src/main/java/net/fabricmc/fabric/api/object/builder/v1/entity/MinecartComparatorLogicRegistry.java

Co-authored-by: Juuz <6596629+Juuxel@users.noreply.github.com>
2023-01-02 13:05:10 +00:00
apple502j
bc01e09759
Keybindings API: New Years cleanup (#2799)
* Keybindings API: New Years cleanup

* Remove throws
2023-01-02 13:04:48 +00:00
Silver
e498f5f0a9
Replace old nullability comments with annotations (#2800)
* Replace useless nullability comments with jetbrains annotation

* These were old comments

* Revert "These were old comments"

This reverts commit 4e9555ad51.

* checkstyle + nullability in mixin
2023-01-02 13:04:34 +00:00
Virtuoel
0a2a0d0b13
Fix common tab resetting when reopening creative screen (#2803) 2023-01-02 13:04:06 +00:00
apple502j
4017a8cb18
Catch exception inside client-side JOIN event (#2813)
* 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>
2023-01-02 13:03:53 +00:00