Package net.minecraftforge.client.model
Class BakedItemModel
java.lang.Object
net.minecraftforge.client.model.BakedItemModel
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BakedModel
protected final boolean
protected final ItemOverrides
protected final TextureAtlasSprite
protected final com.google.common.collect.ImmutableList<BakedQuad>
protected final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
Transformation> -
Constructor Summary
ConstructorDescriptionBakedItemModel
(com.google.common.collect.ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms, ItemOverrides overrides, boolean untransformed, boolean isSideLit) -
Method Summary
Modifier and TypeMethodDescriptiongetQuads
(BlockState state, Direction side, Random rand) handlePerspective
(ItemTransforms.TransformType type, PoseStack poseStack) private static boolean
hasGuiIdentity
(com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms) boolean
boolean
isGui3d()
boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.resources.model.BakedModel
getTransforms
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
doesHandlePerspectives, getLayerModels, getModelData, getParticleIcon, getQuads, isLayered, useAmbientOcclusion
-
Field Details
-
quads
-
particle
-
transforms
protected final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> transforms -
overrides
-
guiModel
-
isSideLit
protected final boolean isSideLit
-
-
Constructor Details
-
BakedItemModel
public BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms, ItemOverrides overrides, boolean untransformed, boolean isSideLit)
-
-
Method Details
-
hasGuiIdentity
private static boolean hasGuiIdentity(com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> transforms) -
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3d
in interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
getQuads
- Specified by:
getQuads
in interfaceBakedModel
-
handlePerspective
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-