Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionDo 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.Replaced withItemTags.AXES.Replaced withConventionalItemTags.EMPTY_BUCKETS.Replaced withItemTags.HOES.Replaced withConventionalItemTags.LAVA_BUCKETS.Replaced withConventionalItemTags.MILK_BUCKETS.Replaced withItemTags.PICKAXES.Replaced withItemTags.SHOVELS.Replaced withItemTags.SWORDS.Replaced withConventionalItemTags.WATER_BUCKETS.
-
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 ServerPlayerEntity.ApiLookupMap.LookupConstructorshould be used instead as it also passes the identifier.Please useFabricLootPoolBuilderinstead.useFabricLootTableBuilderinstead.UseSimpleResourceReloaderinstead.UseSynchronousResourceReloaderdirectly.
-
Deprecated ClassesClassDescriptionReplaced with transitive access wideners in Fabric Transitive Access Wideners (v1).Replaced with transitive access wideners in Fabric Transitive Access Wideners (v1).Please use
LootTableEventsinstead.replace withEntityType.Builderuseinvalid reference
EntityType.Builder#createLiving(EntityType.EntityFactory, SpawnGroup, UnaryOperator)UseResourceReloaderKeysinstead.Please useConventionalBiomeTagsPlease useConventionalBlockTagsPlease useConventionalEnchantmentTagsPlease useConventionalEntityTypeTagsPlease useConventionalFluidTagsPlease useConventionalItemTagsPlease useTagUtilUse the constants inNbtElementinstead.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescriptionreplaced by
ClientConfigurationConnectionEvents.COMPLETEUse the more generalServerLivingEntityEvents.ALLOW_DEATHevent instead and check forinstanceof ServerPlayerEntity.Please useLootTableEvents.ALL_LOADEDinstead.Please useLootTableEvents.MODIFYinstead.Please useLootTableEvents.REPLACEinstead.Replaced withItemTags.AXES.Replaced withConventionalItemTags.EMPTY_BUCKETS.Replaced withItemTags.HOES.Replaced withConventionalItemTags.LAVA_BUCKETS.Replaced withConventionalItemTags.MILK_BUCKETS.Replaced withItemTags.PICKAXES.Replaced withItemTags.SHOVELS.Replaced withItemTags.SWORDS.Replaced withConventionalItemTags.WATER_BUCKETS.
-
Deprecated MethodsMethodDescriptionUse
Screen.getTextRenderer()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.createDefaulted(RegistryKey, Identifier)Please migrate toFabricRegistryBuilder.createSimple(RegistryKey)ApiLookupMap.LookupConstructorshould be used instead of lookup factory, to expose the identifier.Please useFabricLootPoolBuilder.apply(LootFunction)instead.Please useFabricLootPoolBuilder.apply(LootFunction)instead.Please useFabricLootPoolBuilder.conditionally(LootCondition)instead.Please useFabricLootPoolBuilder.conditionally(LootCondition)instead.Please useFabricLootPoolBuilder.copyOf(LootPool)instead.Please useFabricLootPoolBuilder.with(LootPoolEntry)instead.Please useFabricLootPoolBuilder.with(LootPoolEntry)instead.useFabricLootTableBuilder.apply(Collection)instead.useFabricLootTableBuilder.apply(LootFunction)instead.useFabricLootTableBuilder.copyOf(LootTable)instead.useFabricLootTableBuilder.modifyPools(Consumer)instead.useFabricLootTableBuilder.pool(LootPool)instead.useFabricLootTableBuilder.pools(Collection)instead.UseFabricBlockEntityTypeBuilder.build()instead.Add items to theminecraft:villager_picks_upitem tag instead.UseSpriteFinder.find(QuadView)instead.UseFabricSpriteAtlasTexture.spriteFinder()instead.Please useResourceManagerHelper.registerBuiltinResourcePack(Identifier, ModContainer, ResourcePackActivationType)instead, thesub pathshould be removed in a future release in favor of the identifier path.UseResourceLoader.RELOADER_REGISTRY_LOOKUP_KEYwithResourceReloader.Storeinstead.Only use if you absolutely need it, there is almost always a better way.
-
Deprecated ConstructorsConstructorDescriptionYou should not be calling this constructor!You should not be calling this constructor!