public class CompositeModel extends java.lang.Object implements IDynamicBakedModel
Modifier and Type | Class and Description |
---|---|
static class |
CompositeModel.Geometry |
static class |
CompositeModel.Loader |
private static class |
CompositeModel.Submodel |
static class |
CompositeModel.SubmodelModelData |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableMap<java.lang.String,IBakedModel> |
bakedParts |
private boolean |
isAmbientOcclusion |
private boolean |
isGui3d |
private ItemOverrideList |
overrides |
private TextureAtlasSprite |
particle |
static ModelProperty<CompositeModel.SubmodelModelData> |
SUBMODEL_DATA |
private IModelTransform |
transforms |
Constructor and Description |
---|
CompositeModel(boolean isGui3d,
boolean isAmbientOcclusion,
TextureAtlasSprite particle,
com.google.common.collect.ImmutableMap<java.lang.String,IBakedModel> bakedParts,
IModelTransform combinedTransform,
ItemOverrideList overrides) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this model
|
boolean |
func_230044_c_() |
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) |
private IModelData |
getSubmodelData(IModelData extraData,
java.lang.String name) |
IBakedModel |
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType,
MatrixStack mat) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQuads
getItemCameraTransforms
getBakedModel, getModelData, getParticleTexture, isAmbientOcclusion
public static final ModelProperty<CompositeModel.SubmodelModelData> SUBMODEL_DATA
private final com.google.common.collect.ImmutableMap<java.lang.String,IBakedModel> bakedParts
private final boolean isAmbientOcclusion
private final boolean isGui3d
private final TextureAtlasSprite particle
private final ItemOverrideList overrides
private final IModelTransform transforms
public CompositeModel(boolean isGui3d, boolean isAmbientOcclusion, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<java.lang.String,IBakedModel> bakedParts, IModelTransform combinedTransform, 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
public boolean isAmbientOcclusion()
isAmbientOcclusion
in interface IBakedModel
public boolean isGui3d()
isGui3d
in interface IBakedModel
public boolean func_230044_c_()
func_230044_c_
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 IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
handlePerspective
in interface IForgeBakedModel
@Nullable public IBakedModel getPart(java.lang.String name)
private IModelData getSubmodelData(IModelData extraData, java.lang.String name)