Package net.minecraftforge.client.model
Class MultiLayerModel.MultiLayerBakedModel
- java.lang.Object
-
- net.minecraftforge.client.model.MultiLayerModel.MultiLayerBakedModel
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
- Enclosing class:
- MultiLayerModel
private static final class MultiLayerModel.MultiLayerBakedModel extends java.lang.Object implements IDynamicBakedModel
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
ambientOcclusion
private com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>
cameraTransforms
private boolean
convertRenderTypes
protected boolean
gui3d
protected boolean
isSideLit
static com.google.common.collect.BiMap<RenderType,RenderType>
ITEM_RENDER_TYPE_MAPPING
private java.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
itemLayers
private java.util.List<BakedQuad>
missing
private com.google.common.collect.ImmutableMap<RenderType,IBakedModel>
models
protected ItemOverrideList
overrides
protected TextureAtlasSprite
particle
-
Constructor Summary
Constructors Constructor Description MultiLayerBakedModel(boolean ambientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrideList overrides, boolean convertRenderTypes, java.util.List<com.mojang.datafixers.util.Pair<RenderType,IBakedModel>> models, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms)
-
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 modeljava.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
getLayerModels(ItemStack itemStack, boolean fabulous)
If {@see isLayered()} returns true, this is called to get the list of layers to draw.ItemOverrideList
getOverrides()
TextureAtlasSprite
getParticleIcon()
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand, IModelData extraData)
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
boolean
isAmbientOcclusion(BlockState state)
boolean
isCustomRenderer()
boolean
isGui3d()
boolean
isLayered()
Override to true, to tell forge to call the getLayerModels method below.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.model.data.IDynamicBakedModel
getQuads
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getBakedModel, getModelData, getParticleTexture
-
-
-
-
Field Detail
-
models
private final com.google.common.collect.ImmutableMap<RenderType,IBakedModel> models
-
cameraTransforms
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms
-
ambientOcclusion
protected final boolean ambientOcclusion
-
gui3d
protected final boolean gui3d
-
isSideLit
protected final boolean isSideLit
-
particle
protected final TextureAtlasSprite particle
-
overrides
protected final ItemOverrideList overrides
-
missing
private final java.util.List<BakedQuad> missing
-
convertRenderTypes
private final boolean convertRenderTypes
-
itemLayers
private final java.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> itemLayers
-
ITEM_RENDER_TYPE_MAPPING
public static com.google.common.collect.BiMap<RenderType,RenderType> ITEM_RENDER_TYPE_MAPPING
-
-
Constructor Detail
-
MultiLayerBakedModel
public MultiLayerBakedModel(boolean ambientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrideList overrides, boolean convertRenderTypes, java.util.List<com.mojang.datafixers.util.Pair<RenderType,IBakedModel>> models, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms)
-
-
Method Detail
-
getQuads
@Nonnull public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull java.util.Random rand, @Nonnull IModelData extraData)
- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()
- Specified by:
useAmbientOcclusion
in interfaceIBakedModel
-
isAmbientOcclusion
public boolean isAmbientOcclusion(BlockState state)
- Specified by:
isAmbientOcclusion
in interfaceIForgeBakedModel
-
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
-
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
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
getOverrides
public ItemOverrideList getOverrides()
- Specified by:
getOverrides
in interfaceIBakedModel
-
isLayered
public boolean isLayered()
Description copied from interface:IForgeBakedModel
Override to true, to tell forge to call the getLayerModels method below.- Specified by:
isLayered
in interfaceIForgeBakedModel
-
getLayerModels
public java.util.List<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> getLayerModels(ItemStack itemStack, boolean fabulous)
Description copied from interface:IForgeBakedModel
If {@see isLayered()} returns true, this is called to get the list of layers to draw.- Specified by:
getLayerModels
in interfaceIForgeBakedModel
-
-