Deprecated API
Contents
-
ElementDescriptionUse extension methods in
IGuiGraphicsExtension
insteadUseFluidStack.getHoverName()
instead.PreferFluidStack.getHoverName()
.
-
ClassDescriptionNeoForge: Use
AdvancementProvider
instead, provides ease of access for theExistingFileHelper
in the generatorForge: UseDatapackBuiltinEntriesProvider
insteadUse extension methods inIGuiGraphicsExtension
instead
-
Record ClassDescription
-
FieldDescriptionForge: Use
PresetEditorManager.get(ResourceKey)
instead.Neo: use thedata map
insteadNeo: use thedata map
insteadNeoforge: useIPlayerExtension.mayFly()
to read andNeoForgeMod.CREATIVE_FLIGHT
Attribute to modifyForge: This map is patched out of vanilla code. Listen toBlockEvent.BlockToolModificationEvent
or overrideIBlockExtension.getToolModifiedState(BlockState, UseOnContext, net.neoforged.neoforge.common.ToolAction, boolean)
.Neo: Use thecompostable
data map insteadNeo: use thedata map
instead.
-
MethodDescriptionNeo: call
Camera.setRotation(float, float, float)
insteadRegister viaRegisterColorHandlersEvent.Block
Register viaRegisterColorHandlersEvent.Item
Neo: UseIAbstractWidgetExtension.onClick(double, double, int)
instead.Forge: Use gradient overload insteaduseRegisterMenuScreensEvent
insteadRegister viaRegisterParticleProvidersEvent
Register viaRegisterParticleProvidersEvent
Register viaRegisterParticleProvidersEvent
Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
Forge: Use variant with RenderTypeGroupForge: For internal use only. Use the Register events when registering values.Forge: UseRegisterGameTestsEvent
to register game testsForge: UseRegisterGameTestsEvent
to register game testsForge: UseRegisterGameTestsEvent
to register game testsUseBundlerInfo.unbundlePacket(Packet, Consumer, io.netty.channel.ChannelHandlerContext)
instead, as it supports packet filtering and is more efficient.Neo: use overload with ConnectionType contextNeoForge: UseNeoForgeRegistries.ENTITY_DATA_SERIALIZERS
insteadUseServerCommonPacketListenerImpl.createCookie(ClientInformation, net.neoforged.neoforge.network.connection.ConnectionType)
instead, keeping the connection type information available.Forge: Userider sensitive version
Neo: Useinvalid reference
net.neoforged.neoforge.common.IShearable#isShearable(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.core.BlockPos)
Neo: Useinvalid reference
net.neoforged.neoforge.common.IShearable#onSheared(net.minecraft.world.entity.player.Player, net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.core.BlockPos, int)
Forge: useCreativeModeTab.builder()
Neo: UseEnchantmentHelper.getTagEnchantmentLevel(Holder, ItemStack)
for NBT enchantments, orIItemStackExtension.getEnchantmentLevel(Holder)
for gameplay.Neo: Use ItemStack sensitive version.Neo: do not use, usethe event
insteadForge:invalid reference
Use damage source sensitive version
Neo: UseItemStack.getTagEnchantments()
for NBT enchantments, orIItemStackExtension.getAllEnchantments(net.minecraft.core.HolderLookup.RegistryLookup<net.minecraft.world.item.enchantment.Enchantment>)
for gameplay.Forge: Use damage source sensitive versionNeoForge: UseRarity.getStyleModifier()
Forge: UseBaseRailBlock.getRailDirection(BlockState, BlockGetter, BlockPos, net.minecraft.world.entity.vehicle.AbstractMinecart)
for enhanced ability If you do change this property be aware that other functions in this/subclasses may break as they can make assumptions about this propertyNeo: get burn times by callingIItemStackExtension.getBurnTime(RecipeType)
Forge: UseIBlockStateExtension.getLightEmission(BlockGetter, BlockPos)
insteadnet.minecraft.world.level.levelgen.synth.ImprovedNoise.noise(double, double, double, double, double) Forge: UseFlowingFluid.canConvertToSource(FluidState, Level, BlockPos)
instead.Forge: useLavaFluid.isFlammable(LevelReader,BlockPos,Direction)
insteadnet.minecraft.world.level.storage.loot.LootTable.getRandomItemsRaw(LootContext, Consumer<ItemStack>) UseFluidStack.getHoverName()
instead.PreferFluidStack.getHoverName()
.
-
ConstructorDescriptionForge: Use variant with RenderTypeGroupForge: Use the mod id variantForge: Use the mod id variantnet.minecraft.data.tags.CatVariantTagsProvider
(PackOutput, CompletableFuture<HolderLookup.Provider>) Forge: Use the mod id variantnet.minecraft.data.tags.DamageTypeTagsProvider(PackOutput, CompletableFuture<HolderLookup.Provider>) Forge: Use the mod id variantForge: Use the mod id variantnet.minecraft.data.tags.EntityTypeTagsProvider(PackOutput, CompletableFuture<HolderLookup.Provider>) Forge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantNeo: Use the mod id variantnet.minecraft.data.tags.InstrumentTagsProvider(PackOutput, CompletableFuture<HolderLookup.Provider>) Forge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantNeo: use overload with ConnectionType contextUseCommonListenerCookie(GameProfile, int, ClientInformation, boolean, net.neoforged.neoforge.network.connection.ConnectionType)
instead, to indicate whether the connection is modded.Neo: useMetadata(Component,PackCompatibility,FeatureFlagSet,List,boolean)
insteadForge: UseTagFile(List, boolean, List)
which has support for remove entries.Forge: UseDeferredSpawnEggItem
instead for suppliersNeo: use the constructorinvalid reference
with a default value and id setter