Commit graph

1202 commits

Author SHA1 Message Date
apple502j
5c4fce2850 Keybindings API: New Years cleanup (#2799)
* 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 (#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

(cherry picked from commit e498f5f0a9)
2023-01-02 13:07:42 +00:00
apple502j
10eb22f456 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>
(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 (#2783)
- Fire client chunk unload event when the load distance is decreased.
  Fixes #1821.
- 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 #2423.

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

(cherry picked from commit a91e48b70e)
2022-12-23 16:35:09 +00:00
Miku
63b2489b25 Add Traditional Chinese (#2776)
(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 (#2670)
* 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 (#2582)
* 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 #602: Allow querying registered DynamicItemRenderers (#2779)
(cherry picked from commit 0b401b6a39)
2022-12-23 15:30:53 +00:00
apple502j
4d0d57038f Javadoc and typo fixes (#2782)
(cherry picked from commit f1e4495b13)
2022-12-23 15:30:50 +00:00
Sideroo
e415d50e90 Fix block api resources path (#2749)
(cherry picked from commit e022e5d10c)
2022-12-23 15:30:48 +00:00
modmuss50
6e0787e663 Small Cleanups (#2767)
* ServerLoginNetworking javadoc fix

* Improve Rendering Data Attachment javadocs. Fixes #863

* Deprecate `NbtType`. Fixes #1401

* Remove redundancy

(cherry picked from commit afca2f3e33)
2022-12-23 15:30:42 +00:00
Technici4n
b6b6abb47f Fix #1145: Long enum gamerule name hidden by button (#2768)
(cherry picked from commit 422b0dd1b3)
2022-12-23 15:27:34 +00:00
modmuss50
c99de4d0d0 Disable the gametest command on the server by default. (#2769)
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 (#2770)
(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 (#2709)
* Introduce fabric:server-language-namespaces custom meta to fabric-resource-loader-v0 (extension of FabricMC/fabric#2668)

* 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 (#2734)
(cherry picked from commit a9337210f9)
2022-12-11 14:12:43 +00:00
miir
27265b3409 Add c:shields convention tag (#2727)
* 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 (#2726)
(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 (#2712)
(cherry picked from commit d9ac3c39e0)
2022-11-29 18:11:36 +00:00
Technici4n
6eb9a2a153 AttackBlockCallback: creative fix and javadoc update (#2691)
* 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 (#2686)
* 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
modmuss50
0c110c76fd Remove maven specific jar
(cherry picked from commit fb429b1390)
2022-11-22 16:58:56 +00:00
modmuss50
d12c5477ae Add license to client only entries for client modules. (#2683)
(cherry picked from commit eed73ed20d)
2022-11-22 16:55:08 +00:00
Juuz
9d081d647b
Convert flowing fluids to still ones in fluid variants (#2679)
* Convert flowing fluids to still ones in fluid variants

Closes #2665.

* Improve error message
2022-11-22 16:34:14 +00:00
Juuz
0d0f21023d
Generate package-info files for all impl and mixin packages (#2615)
* Generate package-info files for all impl and mixin packages

* Add javadoc to generated package-infos, use multiline string

* Simplify code

* Remove manual ApiStatus.Internal on impl classes

* Update CONTRIBUTING.md to remove ApiStatus.Internal for impl classes

* Fix Gradle deprecations

* Fix more Gradle deprecations

* Add task metadata

* Support client-main split

* Remove workaround for client packages

* Try to fix Gradle 8 deprecations

* Try to fix Gradle 8 deprecations, part 2

I'm hoping that using the SourceDirectorySet instead of converting it to a
Set<File> (which is pointless?) will carry the build dependencies over.

* Add clean packageInfo task

Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-11-22 16:33:56 +00:00
modmuss50
00d42ba6c3 Bump version 2022-11-20 14:53:24 +00:00
modmuss50
f9594cb682 Only load default language on the server. 2022-11-20 14:11:53 +00:00
Technici4n
cd10d4fc03
Fix #2657: Transfer API edge case with bad isValid overrides (#2659)
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-11-20 13:35:10 +00:00
AlphaMode
fa140d5976
Support stack aware recipe remainders (#2556)
* Support stack aware recipe remainders

* Fix checkstyle

* Remove all overwrites

* Add FabricItemStack and make RecipeRemainderHandler thread safe

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/impl/item/RecipeRemainderHandler.java

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

* Remove hasRecipeRemainder, Update test mod and remove unneeded mixins

* Update fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/CustomDamageTest.java

Co-authored-by: Salvatore Peluso <info@devpelux.xyz>

* Avoid copying the ItemStack

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/mixin/item/AbstractFurnaceBlockEntityMixin.java

Co-authored-by: Salvatore Peluso <info@devpelux.xyz>

* Sneakily change duplicate keybinding to a less used key

* make everything thread safe and improve AbstractFurnaceBlockEntityMixin

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItemStack.java

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

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

Co-authored-by: Salvatore Peluso <info@devpelux.xyz>

* clear thread local and change field prefix

* forgot the allow

* Update fabric-item-api-v1/src/main/java/net/fabricmc/fabric/api/item/v1/FabricItem.java

Co-authored-by: Salvatore Peluso <info@devpelux.xyz>

* Update fabric-item-api-v1/src/testmod/java/net/fabricmc/fabric/test/item/CustomDamageTest.java

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

* Add FurnaceGameTest

* Change test keybind back to LShift

* Fix brewing stand remainder and fix nitpicks

* add code example to remainder javadoc

* Fixed and reformatted docs, changed recipe mixin behavior to store the remainder stack instead of the original stack, refactoring.

* Added gametests for brewing stand and recipe mixins, fixed furnace gametest compairing stacks with themselves.

* Use (0,1,0) position for game tests

* Review changes

Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
Co-authored-by: Salvatore Peluso <info@devpelux.xyz>
Co-authored-by: modmuss50 <modmuss50@gmail.com>
2022-11-20 13:25:23 +00:00
Juuz
9244241639
Split all duplicated packages (#2617)
* Move duplicated v0/v1 impl packages to v0 subpackages

Fixes #2616. The convention is adopted from the command API (v1)
whose impl classes have the v1 subpackage.

* Separate client code into its own packages everywhere

* Fix code style

* Fix code style, part 2

* Allow v0 in package names

* Allow v0 in package names (fixed)
2022-11-20 13:25:05 +00:00
Kevinthegreat
28270f5886 Fixed ScreenEvents Javadoc (#2618)
(cherry picked from commit 33716ae262)
2022-11-20 13:24:41 +00:00
90
ad31814d3c
Add access widener for ItemModelGenerator#writer (#2635)
Allows for the use of custom Models and TextureMaps for generating item models.
2022-11-20 13:23:37 +00:00
modmuss50
3dd584b41f
Adjust nether biomes injection point (#2666)
Co-authored-by: apple502j <33279053+apple502j@users.noreply.github.com>
2022-11-20 13:19:53 +00:00
Jonathan Coates
1f9b83131f
Load modded translations on the server (#2668)
* Load modded translations on the server

* Don't load built-in mods
2022-11-20 13:19:31 +00:00
Jonathan Coates
c4b89cc4a6
Fix shulker boxes accepting other shulkers when using a directionless InventoryStorage (#2669)
* Fix shulker boxes accepting other shulkers

If a mod creates a directionless InventoryStorage, it only calls
Inventory.isValid and not SidedInventory.canInsert. However, shulker
boxes only override the latter, allowing shulkers to be inserted into
them.

* Check for insertion in inventorySlotWrapper instead
2022-11-20 13:19:18 +00:00
modmuss50
49b2f75224 Bump version 2022-11-07 20:35:45 +00:00
modmuss50
dc6bc338e4 Enforce Minecraft 1.19.2
As far as I know everyone who was on 1.19.1 has updated to 1.19.2. It's not something that was tested.

This will improve the error message if people try to run this on 1.19.3.
2022-11-07 19:19:00 +00:00
Dalsu
3e1ba48e78
Edit ko-kr translations for resource-loader (#2593)
* Create ko_kr.json

* Create ko_kr.json

* Edited ko_kr translation
2022-11-07 18:30:27 +00:00
triphora
06e0e251a9
Implement a version of FabricDefaultAttributeRegistry#register that takes a DefaultAttributeContainer (#2589)
Refer to https://github.com/orgs/FabricMC/discussions/2587 for motivations :)
2022-11-07 18:30:06 +00:00
Technici4n
12bfe4ea1a
Add a block appearance API (#2579)
* Add block appearance API

* Add class javadoc for FabricBlock and FabricBlockState

* Address reviews

* Remove OverrideOnly from getAppearance

* Fix javadoc issues
2022-11-07 18:29:51 +00:00
Technici4n
a1d87cb885
Add AFTER_DEATH and ALLOW_DAMAGE events; generalise ALLOW_DEATH to living entities (#2573)
* Add AFTER_DEATH and ALLOW_DAMAGE events; generalise ALLOW_DEATH to living entities

* Make class final and constructor private

* player -> entity; clarify where ALLOW_DAMAGE is fired

* Also deprecate the old AllowDeath funcint
2022-11-07 18:29:39 +00:00
modmuss50
c9f64f5a6e Bump version 2022-10-18 14:00:15 +01:00
Salvatore Peluso
6064db2ac8
Add way to specify the PathNodeType for a block, add missing tests in content registries testmod. (#2519)
* Added LandPathNodeTypesRegistry.

* Added test for LandPathNodeTypesRegistry.

* Added block state to PathNodeTypeProvider.getPathNodeType.

* Made LandPathNodeTypesRegistry final, removed unnecessary NotNull.

* Changed putIfAbsent with put to align with other registries.

* Cleanup.

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

* Removed unused import.

* Added possibility to specify the node type of block if the block is found in a neighbor position, improved documentation.

* Merged mixins cleanup.

* Changed CAPTURE_FAILEXCEPTION into CAPTURE_FAILHARD

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

* Specified some nullables, changed 2 parameter names.

* Added missing content registries tests, changed NODE_TYPES map to IdentityHashMap, improved docs.

* Moved PathNodeTypeProvider inside LandPathNodeTypesRegistry.

* Registry revised to make it possible to distinguish between blocks with dynamic and static node types, reduced LandPathNodeMakerMixin priority, applied suggested docs improvements.

* Changed INVOKE with shift, with INVOKE_ASSIGN.

* Merged all LandPathNodeTypesRegistry utility methods used to check the registration type into a single one.

* Inverted if sequence in LandPathNodeTypesRegistry.getPathNodeType, improved docs.

* Sealed PathNodeTypeProvider and made public, cleaned and simplified LandPathNodeTypesRegistry by removing useless mechanics.

* Improved docs.

* Improved docs (2).

Co-authored-by: Technici4n <13494793+Technici4n@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
2022-10-18 13:52:44 +01:00
Dalsu
70efcffe17
Create ko_kr translations for resource-loader and item-groups (#2591)
* Create ko_kr.json

* Create ko_kr.json
2022-10-18 13:51:36 +01:00