public class BakedItemModel extends java.lang.Object implements IBakedModel
Modifier and Type | Class and Description |
---|---|
static class |
BakedItemModel.BakedGuiItemModel<T extends BakedItemModel> |
Modifier and Type | Field and Description |
---|---|
protected IBakedModel |
guiModel |
protected ItemOverrideList |
overrides |
protected TextureAtlasSprite |
particle |
protected com.google.common.collect.ImmutableList<BakedQuad> |
quads |
protected com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> |
transforms |
Constructor and Description |
---|
BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads,
TextureAtlasSprite particle,
com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms,
ItemOverrideList overrides)
|
BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads,
TextureAtlasSprite particle,
com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms,
ItemOverrideList overrides,
boolean untransformed) |
Modifier and Type | Method and Description |
---|---|
ItemOverrideList |
getOverrides() |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(IBlockState state,
EnumFacing side,
long rand) |
org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> |
handlePerspective(ItemCameraTransforms.TransformType type) |
private static boolean |
hasGuiIdentity(com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemCameraTransforms, isAmbientOcclusion
protected final com.google.common.collect.ImmutableList<BakedQuad> quads
protected final TextureAtlasSprite particle
protected final com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms
protected final ItemOverrideList overrides
protected final IBakedModel guiModel
@Deprecated public BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms, ItemOverrideList overrides)
public BakedItemModel(com.google.common.collect.ImmutableList<BakedQuad> quads, TextureAtlasSprite particle, com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms, ItemOverrideList overrides, boolean untransformed)
private static boolean hasGuiIdentity(com.google.common.collect.ImmutableMap<ItemCameraTransforms.TransformType,TRSRTransformation> transforms)
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 java.util.List<BakedQuad> getQuads(@Nullable IBlockState state, @Nullable EnumFacing side, long rand)
getQuads
in interface IBakedModel
public org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> handlePerspective(ItemCameraTransforms.TransformType type)
handlePerspective
in interface IBakedModel