Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionNever used, tags use a Codec now, so remove this later.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionForge: Use
ForgeAdvancementProvider
instead, provides ease of access for theExistingFileHelper
in the generatorForge: UseDatapackBuiltinEntriesProvider
insteadUse extension methods inIForgeGuiGraphics
instead
-
Deprecated Enum Classes
-
Deprecated Record ClassesRecord ClassDescription
-
Deprecated FieldsFieldDescriptionForge: Use
PresetEditorManager.get(ResourceKey)
instead.Forge: UseForgeRegistries.ACTIVITIES
instead.Forge: UseForgeRegistries.ATTRIBUTES
instead.Forge: UseForgeRegistries.BLOCKS
instead.Forge: UseForgeRegistries.BLOCK_ENTITY_TYPES
instead.Forge: UseForgeRegistries.BLOCK_STATE_PROVIDER_TYPES
instead.Forge: UseForgeRegistries.WORLD_CARVERS
instead.Forge: UseForgeRegistries.CHUNK_STATUS
instead.Forge: UseForgeRegistries.COMMAND_ARGUMENT_TYPES
instead.Forge: UseForgeRegistries.ENCHANTMENTS
instead.Forge: UseForgeRegistries.ENTITY_TYPES
instead.Forge: UseForgeRegistries.FEATURES
instead.Forge: UseForgeRegistries.FLUIDS
instead.Forge: UseForgeRegistries.FOLIAGE_PLACER_TYPES
instead.Forge: UseForgeRegistries.ITEMS
instead.Forge: UseForgeRegistries.MEMORY_MODULE_TYPES
instead.Forge: UseForgeRegistries.MENU_TYPES
instead.Forge: UseForgeRegistries.MOB_EFFECTS
instead.Forge: UseForgeRegistries.PAINTING_VARIANTS
instead.Forge: UseForgeRegistries.PARTICLE_TYPES
instead.Forge: UseForgeRegistries.POI_TYPES
instead.Forge: UseForgeRegistries.POTIONS
instead.Forge: UseForgeRegistries.RECIPE_SERIALIZERS
instead.Forge: UseForgeRegistries.RECIPE_TYPES
instead.Forge: UseForgeRegistries.SCHEDULES
instead.Forge: UseForgeRegistries.SENSOR_TYPES
instead.Forge: UseForgeRegistries.SOUND_EVENTS
instead.Forge: UseForgeRegistries.STAT_TYPES
instead.Forge: UseForgeRegistries.TREE_DECORATOR_TYPES
instead.Forge: UseForgeRegistries.VILLAGER_PROFESSIONS
instead.Forge: This map is patched out of vanilla code. Listen tonet.minecraftforge.event.world.BlockEvent.BlockToolModificationEvent
or overrideIForgeBlock.getToolModifiedState(BlockState, UseOnContext, net.minecraftforge.common.ToolAction, boolean)
.Forge: UseRarity.getStyleModifier()
-
Deprecated MethodsMethodDescriptionForge: use overload with context.Register via
RegisterColorHandlersEvent.Block
Register viaRegisterColorHandlersEvent.Item
Forge: Use gradient overload insteadRegister viaRegisterParticleProvidersEvent
Register viaRegisterParticleProvidersEvent
Register viaRegisterParticleProvidersEvent
Forge: useParticleEngine.render(PoseStack, MultiBufferSource.BufferSource, 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: 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 testsForge: Userider sensitive version
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: get burn times by calling ForgeHooks#getBurnTime(ItemStack)Forge: UseIForgeBlockState.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>) 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.
-
Deprecated ConstructorsConstructorDescriptionForge: Use the overload with Forge metadata parameter to properly forward custom loaders.Forge: 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 variantnet.minecraft.data.tags.EntityTypeTagsProvider(PackOutput, CompletableFuture<HolderLookup.Provider>) Forge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: 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 variantForge: Use the mod id variantForge: Use the mod id variantForge: Use the mod id variantForge: use constructor with context.Forge: use constructor with context.Forge: UseForgeSpawnEggItem
instead for suppliers
IForgeGuiGraphics
instead