![]() ![]() Fabric API’s FabricBlockSettings#of was renamed as well, and the old method was deprecated. Block.Settings#of method was renamed to create.BlockState#blocksMovement, which returns true for all solid blocks except cobwebs and bamboo shoots, was added.Block#canMobSpawnInside now takes a BlockState.BlockSetType now has canOpenByHand field, used by doors and trapdoors.To check if a block is of a certain type, use block tags or instanceof.(You may need to refactor your code if your method takes Block instead of BlockState.) To get those values, use BlockState methods.If a block is not specified as solid or not solid explicitly, then the game checks whether the shape’s average side length is more than 0.73 OR whether the block is taller than 1 block. One note on the new solid and notSolid block settings: These two methods override the default solid block check. To specify the properties, such as the map color and whether the block is replaceable, use the block settings.Material was a class that indicated the type of blocks, such as plant or metal. Minecraft 1.20 introduces some breaking changes to major developer-facing APIs. This does not affect mods using the Renderer API, however third-party renderers such as Canvas or Indium must add support for them. The new methods do not have a default implementation in 1.20. The full list of renames can be found in the pull request description. + materialFinder.ambientOcclusion(TriState.FALSE) The old methods are now deprecated, here are a few examples of migrating away from them: The boolean disableAo material property was also replaced by a more flexible TriState for ambientOcclusion. It was removed, and the naming of some methods was improved in the process. Many methods of the renderer API had an int spriteIndex parameter that was always 0. getHandlerName method was also deprecated.isProfilingEnabled method was deprecated and now always returns false.invalidate method was terminally deprecated, to be removed in future versions.They were intended to be used for profiling events however, the standard Java profiler provides a better result. If you have previously relied on the bug, make sure to have users install the mods on the client.Ī few rarely-used APIs within EventFactory were deprecated. The refactor was merged to both 1.19.4 and 1.20 snapshot branches however, the bug was reintroduced to 1.19.4 only to prevent unexpected breakage. The bug previously allowed clients with Fabric API (but without content mods) to join a server with modded contents, despite the mod being missing on the client. Other small additions to various APIs, such as Convention Tag and Object BuilderĪside from changes related to Minecraft code changes (which are discussed below), no breaking change to the API was introduced.ĭuring one of the code refactors, one bug related to the Registry Sync was “accidentally” fixed.Transfer API: add slotted storage and non-empty iterator.Renderer API: add material inspection and glint material property, remove texture indices.Note that the existing API is not deprecated in any way. Networking: add packet-based API similar to vanilla networking system.Interaction Events: provide fake player API.Data Generation: add codec data provider.New Fabric API changesįabric API added many features since the last update blog post: Loom 1.2 is a small update focused on game library handling improvements and official Windows ARM native support. Players should install the latest stable version of Fabric Loader (currently 0.14.19) to play 1.20. Fabric changesĭevelopers should use Loom 1.2 (at the time of writing) to develop for Minecraft 1.20. Note that all code references are using Yarn mappings modders using alternative mappings may need to use different names. Here is a list of all major modder-facing changes in this version. Minecraft 1.20 - the Trails and Tales Update - releases on June 7th 2023, again with a number of changes that impact many mods.Īs usual, we ask players to be patient, and give mod developers time to update to this new version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |