Class ItemOverrides
java.lang.Object
net.minecraft.client.renderer.block.model.ItemOverrides
- Direct Known Subclasses:
DynamicFluidContainerModel.ContainedFluidOverrideHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ItemOverrides
static final float
private final ItemOverrides.BakedOverride[]
private final ResourceLocation[]
-
Constructor Summary
ModifierConstructorDescriptionprotected
ItemOverrides
(ModelBaker p_251211_, BlockModel p_111741_, List<ItemOverride> p_111743_) Deprecated.ItemOverrides
(ModelBaker p_251211_, UnbakedModel p_111741_, List<ItemOverride> p_111743_, Function<Material, TextureAtlasSprite> spriteGetter) -
Method Summary
Modifier and TypeMethodDescriptionprivate BakedModel
bakeModel
(ModelBaker p_249483_, UnbakedModel p_251965_, ItemOverride p_250816_, Function<Material, TextureAtlasSprite> spriteGetter) com.google.common.collect.ImmutableList
<ItemOverrides.BakedOverride> resolve
(BakedModel p_173465_, ItemStack p_173466_, ClientLevel p_173467_, LivingEntity p_173468_, int p_173469_)
-
Field Details
-
EMPTY
-
NO_OVERRIDE
public static final float NO_OVERRIDE- See Also:
-
overrides
-
properties
-
-
Constructor Details
-
ItemOverrides
protected ItemOverrides() -
ItemOverrides
@Deprecated public ItemOverrides(ModelBaker p_251211_, BlockModel p_111741_, List<ItemOverride> p_111743_) Deprecated. -
ItemOverrides
public ItemOverrides(ModelBaker p_251211_, UnbakedModel p_111741_, List<ItemOverride> p_111743_, Function<Material, TextureAtlasSprite> spriteGetter)
-
-
Method Details
-
bakeModel
@Nullable private BakedModel bakeModel(ModelBaker p_249483_, UnbakedModel p_251965_, ItemOverride p_250816_, Function<Material, TextureAtlasSprite> spriteGetter) -
resolve
@Nullable public BakedModel resolve(BakedModel p_173465_, ItemStack p_173466_, @Nullable ClientLevel p_173467_, @Nullable LivingEntity p_173468_, int p_173469_) -
getOverrides
-
ItemOverrides(ModelBaker, UnbakedModel, List, java.util.function.Function)