public class CompositeModel extends java.lang.Object implements IDynamicBakedModel
Modifier and Type | Class and Description |
---|---|
static class |
CompositeModel.Geometry |
static class |
CompositeModel.Loader |
Constructor and Description |
---|
CompositeModel(boolean isGui3d,
boolean isAmbientOcclusion,
TextureAtlasSprite particle,
com.google.common.collect.ImmutableMap<java.lang.String,IBakedModel> bakedParts,
IModelState combinedState,
ItemOverrideList overrides) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this model
|
IModelData |
getModelData(IEnviromentBlockReader world,
BlockPos pos,
BlockState state,
IModelData tileData) |
ItemOverrideList |
getOverrides() |
IBakedModel |
getPart(java.lang.String name) |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(BlockState state,
Direction side,
java.util.Random rand,
IModelData extraData) |
org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> |
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQuads
getItemCameraTransforms
getBakedModel, getParticleTexture, isAmbientOcclusion
public CompositeModel(boolean isGui3d, boolean isAmbientOcclusion, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<java.lang.String,IBakedModel> bakedParts, IModelState combinedState, ItemOverrideList overrides)
@Nonnull public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, @Nonnull java.util.Random rand, @Nonnull IModelData extraData)
getQuads
in interface IForgeBakedModel
getQuads
in interface IDynamicBakedModel
@Nonnull public IModelData getModelData(@Nonnull IEnviromentBlockReader world, @Nonnull BlockPos pos, @Nonnull BlockState state, @Nonnull IModelData tileData)
getModelData
in interface IForgeBakedModel
public boolean isAmbientOcclusion()
isAmbientOcclusion
in interface IBakedModel
public boolean isGui3d()
isGui3d
in interface IBakedModel
public boolean isBuiltInRenderer()
isBuiltInRenderer
in interface IBakedModel
public TextureAtlasSprite getParticleTexture()
getParticleTexture
in interface IBakedModel
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel
public boolean doesHandlePerspectives()
IForgeBakedModel
doesHandlePerspectives
in interface IForgeBakedModel
public org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> handlePerspective(ItemCameraTransforms.TransformType cameraTransformType)
handlePerspective
in interface IForgeBakedModel
@Nullable public IBakedModel getPart(java.lang.String name)