Deprecated API
Contents
-
ElementDescriptionUse getEntityRenderer, return type down graded to EntityRenderer instead of LivingEntityRendererUse getEntitySkin, return type down graded to EntityRenderer instead of LivingEntityRendererUse extension methods in
IForgeGuiGraphics
insteadNever used, tags use a Codec now, so remove this later.
-
InterfaceDescription// Mojang has switched most things to Codecs and registry context, probably worth deleting this.
-
ClassDescriptionForge: Use
ForgeAdvancementProvider
instead, provides ease of access for theExistingFileHelper
in the generatorUse extension methods inIForgeGuiGraphics
instead
-
Record ClassDescription
-
FieldDescriptionForge: Use
PresetEditorManager.get(ResourceKey)
instead.Forge: This map is patched out of vanilla code. Listen toinvalid reference
net.minecraftforge.event.world.BlockEvent.BlockToolModificationEvent
IForgeBlock.getToolModifiedState(BlockState, UseOnContext, net.minecraftforge.common.ToolAction, boolean)
.Redirected toBiome.getModifiedClimateSettings()
by field_to_method.jsRedirected toBiome.getModifiedSpecialEffects()
by field_to_method.js
-
MethodDescriptionRegister via
RegisterColorHandlersEvent.Block
Register viaRegisterColorHandlersEvent.Item
Register viaRegisterParticleProvidersEvent
Register viaRegisterParticleProvidersEvent
Register viaRegisterParticleProvidersEvent
Forge: useParticleEngine.render(LightTexture, Camera, float, net.minecraft.client.renderer.culling.Frustum)
with Frustum as additional parameterSet your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
Forge: Use item aware function belowForge: UseIForgeModelBaker.bake(ResourceLocation, ModelState, java.util.function.Function)
instead.Forge: 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 testsForge: Userider sensitive version
FORGE: use SpawnPlacementRegisterEvent to register and modify spawn placementsForge: use hasMix(ItemStack, ItemStack)Forge: use hasMix(ItemStack, ItemStack)Forge: useCreativeModeTab.builder()
Forge: UseCreativeModeTab.getBackgroundLocation()
instead.Forge: Use damage source sensitive versionForge: callForgeSpawnEggItem.fromEntityType(EntityType)
insteadForge: 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 propertyForge useinvalid reference
IForgeBlock#getCloneItemStack(BlockState, HitResult, LevelReader, BlockPos, Player)
Forge: Use state-sensitive variant insteadForge: get burn times by calling ForgeHooks#getBurnTime(ItemStack)Forge: UseIForgeBlockState.getLightEmission(BlockGetter, BlockPos)
insteadUse more sensitive versioninvalid reference
IForgeBlockState#getSoundType(IWorldReader, BlockPos, Entity)
net.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>) Use getEntityRenderer, return type down graded to EntityRenderer instead of LivingEntityRendererUse getEntitySkin, return type down graded to EntityRenderer instead of LivingEntityRendereruseIngredient.of()
useIngredient.of(Stream)
(Stream)}useIngredient.of(TagKey)
(Stream)}useIngredient.of(ItemStack...)
(Stream)}useIngredient.of(ItemLike...)
(Stream)}Never used, tags use a Codec now, so remove this later.useDistExecutor.safeCallWhenOn(Dist, Supplier)
instead. This remains for advanced use cases.useDistExecutor.safeRunWhenOn(Dist, Supplier)
where possible. Advanced uses only.Forge: For internal use only. Use the Register events when registering values.
-
ConstructorDescriptionForge: Use the
invalid reference
overload with Forge metadata parameter
Forge: Use variant with RenderTypeGroupForge: 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 constructor with context.Use the one that specifes a PotionBrewingForge: useinvalid reference
constructor with context
Forge: Use the constructor that takes a supplier insteadForge: UseForgeSpawnEggItem
instead for suppliers