Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionSource is not a field interpreted by vanilla in the sounds file, calling this method will have no effect.Do not use, will be removed in a future release.
ApiLookupMap.LookupConstructorshould be used instead of lookup factory, to expose the identifier.ApiLookupMap.LookupConstructorshould be used instead as it also passes the identifier.
-
Deprecated InterfacesInterfaceDescriptionUse
AttackBlockCallbackinstead and check for the block. This gives more control over the different cancellation outcomes.replaced byClientConfigurationConnectionEvents.CompleteUseHudElementRegistryinstead.Use the more generalServerLivingEntityEvents.ALLOW_DEATHevent instead and check forinstanceof ServerPlayer.ApiLookupMap.LookupConstructorshould be used instead as it also passes the identifier.SeeModPackResources.UseSimpleReloadListenerinstead.UseResourceManagerReloadListenerdirectly.
-
Deprecated ClassesClassDescriptionReplaced with transitive access wideners in Fabric Transitive Access Wideners (v1).Replaced with transitive access wideners in Fabric Transitive Access Wideners (v1).replace with
EntityType.BuilderUseResourceReloaderKeysinstead.Use the constants inTaginstead.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescriptionreplaced by
ClientConfigurationConnectionEvents.COMPLETEUse the more generalServerLivingEntityEvents.ALLOW_DEATHevent instead and check forinstanceof ServerPlayer.useServerChunkEvents.CHUNK_LOADdirectly instead
-
Deprecated MethodsMethodDescriptionSet the fog color using environment attributes insteadSet the music volume using environment attributes insteadSet the sky color using environment attributes insteadSet the water fog color using environment attributes insteadSource is not a field interpreted by vanilla in the sounds file, calling this method will have no effect.Use
Screen.getFont()directlyPlease useFabricDataGenerator.createPack()This is not to be used in events anymore.Do not use, will be removed in a future release.Always returnsfalse, do not use. This is not to be used in events anymore, standard Java profilers will do fine.Please migrate toFabricRegistryBuilder.create(ResourceKey)Please migrate toFabricRegistryBuilder.createDefaulted(ResourceKey, Identifier)ApiLookupMap.LookupConstructorshould be used instead of lookup factory, to expose the identifier.UseExtendedMenuType.create(int, Inventory, Object)instead.UseFabricBlockEntityTypeBuilder.build()instead.useEntityType.Builder.build(net.minecraft.resources.ResourceKey)useEntityType.Builder.createNothing(MobCategory)useEntityType.Builder.createNothing(MobCategory)useEntityType.Builder.of(EntityType.EntityFactory, MobCategory)useEntityType.Builder.sized(float, float)useEntityType.Builder.noSave()useEntityType.Builder.noSummon()useEntityType.Builder.fireImmune()useEntityType.Builder.requiredFeatures(FeatureFlag...)useEntityType.Builder.canSpawnFarFromPlayer()useEntityType.Builder.immuneTo(Block...)Add items to theminecraft:villager_picks_upitem tag instead.Please useResourceManagerHelper.registerBuiltinResourcePack(Identifier, ModContainer, ResourcePackActivationType)instead, thesub pathshould be removed in a future release in favor of the identifier path.UseResourceLoader.REGISTRY_LOOKUP_KEYwithPreparableReloadListener.SharedState, orDataResourceLoader.registerReloadListener(Identifier, Function)instead.Only use if you absolutely need it, there is almost always a better way.