Deprecated API
Contents
-
ElementDescription
-
ClassDescriptionForge: Use
ForgeAdvancementProvider
instead, provides ease of access for theExistingFileHelper
in the generatorForge: UseDatapackBuiltinEntriesProvider
insteadUse extension methods inIForgeGuiGraphics
instead
-
Record ClassDescription
-
FieldDescriptionForge: 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()
-
MethodDescriptionForge: 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: UsePackMetadataSection.getPackFormat(net.minecraft.server.packs.PackType)
instead.Forge: Userider sensitive version
Forge: use overload with context.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>) useIngredient.fromJson(JsonElement)
(Stream)}net.minecraftforge.common.crafting.AbstractIngredient.fromValues(Stream<? extends Ingredient.Value>) 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 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 suppliersFORGE: Use supplier version instead
IForgeGuiGraphics
instead