Package net.minecraftforge.client.model
Class MultiLayerModel.MultiLayerBakedModel
java.lang.Object
net.minecraftforge.client.model.MultiLayerModel.MultiLayerBakedModel
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
- Enclosing class:
- MultiLayerModel
private static final class MultiLayerModel.MultiLayerBakedModel
extends Object
implements IDynamicBakedModel
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,
Transformation> private final boolean
protected final boolean
protected final boolean
static final com.google.common.collect.BiMap<RenderType,
RenderType> private final List<com.mojang.datafixers.util.Pair<BakedModel,
RenderType>> private final com.google.common.collect.ImmutableMap<RenderType,
BakedModel> protected final ItemOverrides
protected final TextureAtlasSprite
-
Constructor Summary
ConstructorDescriptionMultiLayerBakedModel
(boolean ambientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, boolean convertRenderTypes, List<com.mojang.datafixers.util.Pair<RenderType, BakedModel>> models, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> cameraTransforms) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override to tell the new model loader that it shouldn't wrap this modelList<com.mojang.datafixers.util.Pair<BakedModel,
RenderType>> getLayerModels
(ItemStack itemStack, boolean fabulous) If returns true, this is called to get the list of layers to draw.getQuads
(BlockState state, Direction side, Random rand, IModelData extraData) handlePerspective
(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack) boolean
boolean
isGui3d()
boolean
Override to true, to tell forge to call the getLayerModels method below.boolean
boolean
useAmbientOcclusion
(BlockState state) 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.model.data.IDynamicBakedModel
getQuads
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getModelData, getParticleIcon
-
Field Details
-
models
-
cameraTransforms
private final com.google.common.collect.ImmutableMap<ItemTransforms.TransformType,Transformation> cameraTransforms -
ambientOcclusion
protected final boolean ambientOcclusion -
gui3d
protected final boolean gui3d -
isSideLit
protected final boolean isSideLit -
particle
-
overrides
-
missing
-
convertRenderTypes
private final boolean convertRenderTypes -
itemLayers
-
ITEM_RENDER_TYPE_MAPPING
-
-
Constructor Details
-
MultiLayerBakedModel
public MultiLayerBakedModel(boolean ambientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, boolean convertRenderTypes, List<com.mojang.datafixers.util.Pair<RenderType, BakedModel>> models, com.google.common.collect.ImmutableMap<ItemTransforms.TransformType, Transformation> cameraTransforms)
-
-
Method Details
-
getQuads
@Nonnull public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull Random rand, @Nonnull IModelData extraData) - Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
useAmbientOcclusion
- Specified by:
useAmbientOcclusion
in interfaceIForgeBakedModel
-
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
-
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 BakedModel handlePerspective(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack) - Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
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 List<com.mojang.datafixers.util.Pair<BakedModel,RenderType>> getLayerModels(ItemStack itemStack, boolean fabulous) Description copied from interface:IForgeBakedModel
If returns true, this is called to get the list of layers to draw.- Specified by:
getLayerModels
in interfaceIForgeBakedModel
-