Package net.minecraftforge.client.model
Class BakedItemModel
- java.lang.Object
-
- net.minecraftforge.client.model.BakedItemModel
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
public class BakedItemModel extends java.lang.Object implements IBakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BakedItemModel.BakedGuiItemModel<T extends BakedItemModel>
-
Field Summary
Fields Modifier and Type Field Description protected IBakedModel
guiModel
protected boolean
isSideLit
protected ItemOverrideList
overrides
protected TextureAtlasSprite
particle
protected com.google.common.collect.ImmutableList<BakedQuad>
quads
protected com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>
transforms
-
Constructor Summary
Constructors Constructor Description BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms, ItemOverrideList overrides, boolean untransformed, boolean isSideLit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand)
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
private static boolean
hasGuiIdentity(com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms)
boolean
isCustomRenderer()
boolean
isGui3d()
boolean
useAmbientOcclusion()
boolean
usesBlockLight()
-
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.renderer.model.IBakedModel
getTransforms
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
doesHandlePerspectives, getBakedModel, getLayerModels, getModelData, getParticleTexture, getQuads, isAmbientOcclusion, isLayered
-
-
-
-
Field Detail
-
quads
protected final com.google.common.collect.ImmutableList<BakedQuad> quads
-
particle
protected final TextureAtlasSprite particle
-
transforms
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms
-
overrides
protected final ItemOverrideList overrides
-
guiModel
protected final IBakedModel guiModel
-
isSideLit
protected final boolean isSideLit
-
-
Constructor Detail
-
BakedItemModel
public BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms, ItemOverrideList overrides, boolean untransformed, boolean isSideLit)
-
-
Method Detail
-
hasGuiIdentity
private static boolean hasGuiIdentity(com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> transforms)
-
useAmbientOcclusion
public boolean useAmbientOcclusion()
- Specified by:
useAmbientOcclusion
in interfaceIBakedModel
-
isGui3d
public boolean isGui3d()
- Specified by:
isGui3d
in interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()
- Specified by:
usesBlockLight
in interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()
- Specified by:
isCustomRenderer
in interfaceIBakedModel
-
getParticleIcon
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
getOverrides
public ItemOverrideList getOverrides()
- Specified by:
getOverrides
in interfaceIBakedModel
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
- Specified by:
getQuads
in interfaceIBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType type, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
-