Package net.minecraftforge.client.model
Class SeparatePerspectiveModel.BakedModel
- java.lang.Object
-
- net.minecraftforge.client.model.SeparatePerspectiveModel.BakedModel
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
- Enclosing class:
- SeparatePerspectiveModel
public static class SeparatePerspectiveModel.BakedModel extends java.lang.Object implements IBakedModel
-
-
Field Summary
Fields Modifier and Type Field Description private IBakedModel
baseModel
private boolean
isAmbientOcclusion
private boolean
isGui3d
private boolean
isSideLit
private ItemOverrideList
overrides
private TextureAtlasSprite
particle
private com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,IBakedModel>
perspectives
-
Constructor Summary
Constructors Constructor Description BakedModel(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrideList overrides, IBakedModel baseModel, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,IBakedModel> perspectives)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this modelItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand)
ItemCameraTransforms
getTransforms()
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
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.minecraftforge.client.extensions.IForgeBakedModel
getBakedModel, getLayerModels, getModelData, getParticleTexture, getQuads, isAmbientOcclusion, isLayered
-
-
-
-
Field Detail
-
isAmbientOcclusion
private final boolean isAmbientOcclusion
-
isGui3d
private final boolean isGui3d
-
isSideLit
private final boolean isSideLit
-
particle
private final TextureAtlasSprite particle
-
overrides
private final ItemOverrideList overrides
-
baseModel
private final IBakedModel baseModel
-
perspectives
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,IBakedModel> perspectives
-
-
Constructor Detail
-
BakedModel
public BakedModel(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrideList overrides, IBakedModel baseModel, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,IBakedModel> perspectives)
-
-
Method Detail
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand)
- Specified by:
getQuads
in interfaceIBakedModel
-
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
-
doesHandlePerspectives
public boolean doesHandlePerspectives()
Description copied from interface:IForgeBakedModel
Override to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectives
in interfaceIForgeBakedModel
-
getTransforms
public ItemCameraTransforms getTransforms()
- Specified by:
getTransforms
in interfaceIBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
-