Deprecated API
Contents
- 
For RemovalElementDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel, so this is no longer neededuseMinecraft.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 returntrueif the passed in tool action is contained inToolActions.DEFAULT_SHIELD_ACTIONSor 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_BLOCKinstead.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>
- 
InterfacesInterfaceDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel
- 
ClassesClassDescriptionNo 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 parallelFor removal in 1.18, superseded by/execute in <dim> run tp <targets>
- 
Enum ClassesEnum ClassDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel
- 
Annotation InterfacesAnnotation InterfaceDescription
- 
FieldsFieldDescriptionSelective reloading is no longer supported due to vanilla now reloading resources in parallel
- 
MethodsMethodDescriptionForge: useParticleEngine.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 returntrueif the passed in tool action is contained inToolActions.DEFAULT_SHIELD_ACTIONSor 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_BLOCKinstead.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.
- 
ConstructorsConstructorDescriptionForge: Use the ModID versionForge: UseForgeSpawnEggIteminstead for suppliers