This must now be set using setStepHeight. EntitiesĮntity#stepHeight is now private. Many recipe related methods now require a DynamicRegistryManager instance to be passed. This is usually FeatureFlags.VANILLA_FEATURES. ScreenHandlerType now requires a required feature set to be passed. Screen implementations should call setInitialFocus within the init method. After each keyboard navigation, the game recalculates the focused element it creates a tree of elements, making sure only one element is focused at a time. GUI code has received changes to support new keyboard navigation. TextRenderer methods now take TextLayerType, instead of boolean seeThrough. ModelTransformation.Mode is replaced with ModelTransformationMode (notice the lack of dot). drawStringWithShadow/ drawWithShadow -> drawTextWithShadow.drawCenteredText -> drawCenteredTextWithShadow.With this, DrawableHelper#getZOffset is now gone, and all DrawableHelper methods have turned into static methods, along with some Yarn renames: Most rendering methods now take MatrixStack if they did not already. RenderSystem#enableTexture and disableTexture has been removed. Biome#isHot is removed and replaced with tags for specific usecases.īiome JSON files should now have a boolean has_precipitation field, not enum precipitation field. Biome Modification API’s setPrecipitation method now takes a boolean to reflect this, and Biome#getPrecipitation and hasPrecipitation methods were added to reflect this. Whether it rains or snows is now entirely dependent on temperature and is positional if the temperature is below 0.15, it snows. Biomeīiome precipitation is now a boolean. WoodTypes require a BlockSetType, and can be registered using WoodTypeRegistry. Similarly, signs and fence gates use the class WoodType to determine their sounds and sign textures. BlockSetTypes can be created and registered using Object Builder API’s BlockSetTypeRegistry. are now configured by passing an instance of a new class, BlockSetType, to the respective block constructors. Sounds of various blocks, such as doors, trapdoors, buttons, pressure plates, etc. Many damage related checks previously hardcoded in the game, such as fall damage-immune mobs (via handleFallDamage override), are now handled using entity and damage type tags. Several data pack predicates related to damages have changed to reflect this. To check if damage is of a certain type, tags should be used. GetDamageSources method also exists in Entity as a shortcut. + anotherEntity.damage(world.getDamageSources().fallingAnvil(attacker), 1.0F) + targetEntity.damage(world.getDamageSources().magic(), 4.0F) anotherEntity.damage(DamageSource.anvil(attacker), 1.0F) targetEntity.damage(DamageSource.MAGIC, 4.0F) Enabled features and operator permission flag are now passed via the context object. Callback passed to ItemGroup.Builder#entries now takes two arguments, instead of three. Minecraft 1.19.4 introduces some breaking changes to major developer-facing APIs. In Block Render Layer API, BlockRenderLayerMap’s useless item-related methods were deprecated for removal. In Registry Sync, FabricRegistryBuilder no longer requires the type class to be passed - just the registry key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |