Package net.minecraftforge.client.model
Class ItemMultiLayerBakedModel
- java.lang.Object
-
- net.minecraftforge.client.model.ItemMultiLayerBakedModel
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
public class ItemMultiLayerBakedModel extends java.lang.Object implements IDynamicBakedModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemMultiLayerBakedModel.Builder
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix>
cameraTransforms
private com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>>
layerModels
private ItemOverrideList
overrides
private TextureAtlasSprite
particle
private boolean
shadedInGui
private boolean
sideLit
private boolean
smoothLighting
-
Constructor Summary
Constructors Constructor Description ItemMultiLayerBakedModel(boolean smoothLighting, boolean shadedInGui, boolean sideLit, TextureAtlasSprite particle, ItemOverrideList overrides, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> layerModels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ItemMultiLayerBakedModel.Builder
builder(IModelConfiguration owner, TextureAtlasSprite particle, ItemOverrideList overrides, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms)
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 modelData)
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
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, isAmbientOcclusion
-
-
-
-
Field Detail
-
smoothLighting
private final boolean smoothLighting
-
shadedInGui
private final boolean shadedInGui
-
sideLit
private final boolean sideLit
-
particle
private final TextureAtlasSprite particle
-
overrides
private final ItemOverrideList overrides
-
layerModels
private final com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> layerModels
-
cameraTransforms
private final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms
-
-
Constructor Detail
-
ItemMultiLayerBakedModel
public ItemMultiLayerBakedModel(boolean smoothLighting, boolean shadedInGui, boolean sideLit, TextureAtlasSprite particle, ItemOverrideList overrides, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms, com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<IBakedModel,RenderType>> layerModels)
-
-
Method Detail
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand, IModelData modelData)
- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
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
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
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
-
builder
public static ItemMultiLayerBakedModel.Builder builder(IModelConfiguration owner, TextureAtlasSprite particle, ItemOverrideList overrides, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TransformationMatrix> cameraTransforms)
-
-