Deprecated API
Contents
-
ElementDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel, so this is no longer neededuse
Minecraft.reloadResourcePacks()
insteadTo be removed in 1.18. OverrideItem.getBarWidth(ItemStack)
instead, with the notable difference that the new method returns the width of the colored bar in pixels (where a full bar is 13px wide).To be removed in 1.18. OverrideItem.getBarColor(ItemStack)
instead.To be removed in 1.18. OverrideIForgeItem.canPerformAction(ItemStack, ToolAction)
and returntrue
if the passed in tool action is contained inToolActions.DEFAULT_SHIELD_ACTIONS
or is equals toToolActions.SHIELD_BLOCK
.To be removed in 1.18. OverrideItem.isBarVisible(ItemStack)
instead.To be removed in 1.18. CallIForgeItemStack.canPerformAction(ToolAction)
withToolActions.SHIELD_BLOCK
instead.Selective reloading is no longer supported due to vanilla now reloading resources in parallelNo longer needed. See inner classes for replacements. TODO Remove in 1.18Replaced by the constants inBlock
. TODO Remove in 1.18Replaced by the constants inTag
. TODO Remove in 1.18Replaced by the constants inLevelEvent
. TODO Remove in 1.18Selective reloading is no longer supported due to vanilla now reloading resources in parallelSelective reloading is no longer supported due to vanilla now reloading resources in parallelSelective reloading is no longer supported due to vanilla now reloading resources in parallelFor removal in 1.18, superseded by/execute in <dim> run tp <targets>
-
InterfaceDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel
-
ClassDescriptionNo longer needed. See inner classes for replacements. TODO Remove in 1.18Replaced by the constants in
Block
. TODO Remove in 1.18Replaced by the constants inTag
. TODO Remove in 1.18Replaced by the constants inLevelEvent
. TODO Remove in 1.18Selective reloading is no longer supported due to vanilla now reloading resources in parallelFor removal in 1.18, superseded by/execute in <dim> run tp <targets>
-
Enum ClassDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel
-
Annotation InterfaceDescription
-
FieldDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel
-
MethodDescriptionForge: use
ParticleEngine.render(PoseStack, MultiBufferSource.BufferSource, LightTexture, Camera, float, net.minecraft.client.renderer.culling.Frustum)
with Frustum as additional parameternet.minecraft.client.renderer.block.model.ItemTransforms.getTransform(ItemTransforms.TransformType)Selective reloading is no longer supported due to vanilla now reloading resources in parallel, so this is no longer neededForge useCreativeModeTab.getBackgroundImage()
insteadForge: useCreativeModeTab.setBackgroundImage(net.minecraft.resources.ResourceLocation)
insteadForge: callForgeSpawnEggItem.fromEntityType(EntityType)
insteadForge: get burn times by calling ForgeHooks#getBurnTime(ItemStack)Forge: useLavaFluid.isFlammable(LevelReader,BlockPos,Direction)
insteadevent now has a result instead and will no longer be cancellable in 1.18; useEvent.setResult(Result)
event now has a result instead and will no longer be cancellable in 1.18; useEvent.setResult(Result)
useMinecraft.reloadResourcePacks()
insteadUnused in 1.15, useModelBuilder.guiLight(GuiLight)
instead.To be removed in 1.18. OverrideItem.getBarWidth(ItemStack)
instead, with the notable difference that the new method returns the width of the colored bar in pixels (where a full bar is 13px wide).To be removed in 1.18. OverrideItem.getBarColor(ItemStack)
instead.To be removed in 1.18. OverrideIForgeItem.canPerformAction(ItemStack, ToolAction)
and returntrue
if the passed in tool action is contained inToolActions.DEFAULT_SHIELD_ACTIONS
or is equals toToolActions.SHIELD_BLOCK
.To be removed in 1.18. OverrideItem.isBarVisible(ItemStack)
instead.To be removed in 1.18. CallIForgeItemStack.canPerformAction(ToolAction)
withToolActions.SHIELD_BLOCK
instead.UseIForgeStructureFeature.getDefaultSpawnList(MobCategory)
TODO: Remove in 1.18UseIForgeStructureFeature.getDefaultSpawnList(MobCategory)
TODO: Remove in 1.18useDistExecutor.safeCallWhenOn(Dist, Supplier)
instead. This remains for advanced use cases.useDistExecutor.safeRunWhenOn(Dist, Supplier)
where possible. Advanced uses only.
-
ConstructorDescriptionForge: Use the ModID versionForge: Use
ForgeSpawnEggItem
instead for suppliers