Deprecated API
Contents
-
ElementDescription
-
InterfaceDescription// Mojang has switched most things to Codecs and registry context, probably worth deleting this. Most cases this is used for Capabilities, and should use Components attached to the object that the cap is attached to.
-
ClassDescriptionForge: Use
ForgeAdvancementProvider
instead, provides ease of access for theExistingFileHelper
in the generator
-
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 parameterForge: Useinvalid reference
#bake(ModelBaker, BlockModel, Function, ModelState, ResourceLocation, boolean)
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)
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: 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: 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>) useIngredient.of()
useIngredient.of(Stream)
(Stream)}useIngredient.of(TagKey)
(Stream)}useIngredient.of(ItemStack...)
(Stream)}useIngredient.of(ItemLike...)
(Stream)}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: UseForgeSpawnEggItem
instead for suppliers