Package net.minecraftforge.client.model
Class CompositeModel
java.lang.Object
net.minecraftforge.client.model.CompositeModel
- All Implemented Interfaces:
IBakedModel,IForgeBakedModel,IDynamicBakedModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA model data container which stores data for child components.static classstatic classprivate static classWrapper 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
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<String,IBakedModel> private final booleanprivate final booleanprivate final booleanprivate final ItemOverrideListprivate final TextureAtlasSpriteprivate final IModelTransform -
Constructor Summary
ConstructorsConstructorDescriptionCompositeModel(boolean isGui3d, boolean isSideLit, boolean isAmbientOcclusion, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<String, IBakedModel> bakedParts, IModelTransform combinedTransform, ItemOverrideList overrides) -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride to tell the new model loader that it shouldn't wrap this modelgetModelData(IBlockDisplayReader world, BlockPos pos, BlockState state, IModelData tileData) getQuads(BlockState state, Direction side, Random rand, IModelData extraData) handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) booleanbooleanisGui3d()booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.model.IBakedModel
getTransformsMethods inherited from interface net.minecraftforge.client.model.data.IDynamicBakedModel
getQuadsMethods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getBakedModel, getLayerModels, getParticleTexture, isAmbientOcclusion, isLayered
-
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, IBakedModel> bakedParts, IModelTransform combinedTransform, ItemOverrideList overrides)
-
-
Method Details
-
getQuads
@Nonnull public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull Random rand, @Nonnull IModelData extraData) - Specified by:
getQuadsin interfaceIDynamicBakedModel- Specified by:
getQuadsin interfaceIForgeBakedModel
-
getModelData
@Nonnull public IModelData getModelData(@Nonnull IBlockDisplayReader world, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull IModelData tileData) - Specified by:
getModelDatain interfaceIForgeBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusionin interfaceIBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3din interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLightin interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRendererin interfaceIBakedModel
-
getParticleIcon
- Specified by:
getParticleIconin interfaceIBakedModel
-
getOverrides
- Specified by:
getOverridesin interfaceIBakedModel
-
doesHandlePerspectives
public boolean doesHandlePerspectives()Description copied from interface:IForgeBakedModelOverride to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectivesin interfaceIForgeBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat) - Specified by:
handlePerspectivein interfaceIForgeBakedModel
-
getPart
-