Package net.minecraftforge.client.model
Class CompositeModel
java.lang.Object
net.minecraftforge.client.model.CompositeModel
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
,IDynamicBakedModel
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A model data container which stores data for child components.static class
static class
private static class
Wrapper for an IModelData instance which allows forwarding queries to the parent, but stores any new/modified values itself, avoiding modifications to the parent.private static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<String,
BakedModel> private final boolean
private final boolean
private final boolean
private final ItemOverrides
private final TextureAtlasSprite
private final ModelState
-
Constructor Summary
ConstructorDescriptionCompositeModel
(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<String, BakedModel> bakedParts, ModelState combinedTransform, ItemOverrides overrides) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override to tell the new model loader that it shouldn't wrap this modelgetModelData
(BlockAndTintGetter level, BlockPos pos, BlockState state, IModelData modelData) getQuads
(BlockState state, Direction side, Random rand, IModelData extraData) handlePerspective
(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack) boolean
boolean
isGui3d()
boolean
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
getLayerModels, getParticleIcon, isLayered, useAmbientOcclusion
-
Field Details
-
bakedParts
-
isAmbientOcclusion
private final boolean isAmbientOcclusion -
isGui3d
private final boolean isGui3d -
isSideLit
private final boolean isSideLit -
particle
-
overrides
-
transforms
-
-
Constructor Details
-
CompositeModel
public CompositeModel(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<String, BakedModel> bakedParts, ModelState combinedTransform, ItemOverrides overrides)
-
-
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
-
getModelData
@Nonnull public IModelData getModelData(@Nonnull BlockAndTintGetter level, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull IModelData modelData) - Specified by:
getModelData
in interfaceIForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
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
-
getOverrides
- Specified by:
getOverrides
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
-
getPart
-