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
private final ItemOverrides.BakedOverride[]
private final ResourceLocation[]
-
Constructor Summary
ModifierConstructorDescriptionprotected
ItemOverrides
(ModelBakery p_111740_, BlockModel p_111741_, Function<ResourceLocation, UnbakedModel> p_111742_, List<ItemOverride> p_111743_) Deprecated.ItemOverrides
(ModelBakery p_111740_, UnbakedModel p_111741_, Function<ResourceLocation, UnbakedModel> p_111742_, Function<Material, TextureAtlasSprite> textureGetter, List<ItemOverride> p_111743_) -
Method Summary
Modifier and TypeMethodDescriptionprivate BakedModel
bakeModel
(ModelBakery p_173471_, UnbakedModel p_173472_, Function<ResourceLocation, UnbakedModel> p_173473_, Function<Material, TextureAtlasSprite> textureGetter, ItemOverride p_173474_) 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
-
overrides
-
properties
-
-
Constructor Details
-
ItemOverrides
protected ItemOverrides() -
ItemOverrides
@Deprecated public ItemOverrides(ModelBakery p_111740_, BlockModel p_111741_, Function<ResourceLocation, UnbakedModel> p_111742_, List<ItemOverride> p_111743_) Deprecated. -
ItemOverrides
public ItemOverrides(ModelBakery p_111740_, UnbakedModel p_111741_, Function<ResourceLocation, UnbakedModel> p_111742_, Function<Material, TextureAtlasSprite> textureGetter, List<ItemOverride> p_111743_)
-
-
Method Details
-
bakeModel
@Nullable private BakedModel bakeModel(ModelBakery p_173471_, UnbakedModel p_173472_, Function<ResourceLocation, UnbakedModel> p_173473_, Function<Material, TextureAtlasSprite> textureGetter, ItemOverride p_173474_) -
resolve
@Nullable public BakedModel resolve(BakedModel p_173465_, ItemStack p_173466_, @Nullable ClientLevel p_173467_, @Nullable LivingEntity p_173468_, int p_173469_) -
getOverrides
-