public class OBJModel.OBJBakedModel extends java.lang.Object implements IBakedModel
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.LoadingCache<IModelState,OBJModel.OBJBakedModel> |
cache |
private VertexFormat |
format |
private OBJModel |
model |
private com.google.common.collect.ImmutableList<BakedQuad> |
quads |
private TextureAtlasSprite |
sprite |
private IModelState |
state |
private com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> |
textures |
Constructor and Description |
---|
OBJBakedModel(OBJModel model,
IModelState state,
VertexFormat format,
com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures) |
Modifier and Type | Method and Description |
---|---|
private com.google.common.collect.ImmutableList<BakedQuad> |
buildQuads(IModelState modelState) |
OBJModel.OBJBakedModel |
getBakedModel() |
OBJModel.OBJBakedModel |
getCachedModel(IModelState state) |
OBJModel |
getModel() |
ItemOverrideList |
getOverrides() |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(IBlockState blockState,
EnumFacing side,
long rand) |
IModelState |
getState() |
org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> |
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
private void |
putVertexData(UnpackedBakedQuad.Builder builder,
OBJModel.Vertex v,
OBJModel.Normal faceNormal,
OBJModel.TextureCoordinate defUV,
TextureAtlasSprite sprite) |
void |
scheduleRebake() |
java.lang.String |
toString() |
private void |
updateStateVisibilityMap(OBJModel.OBJState state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getItemCameraTransforms, isAmbientOcclusion
private final OBJModel model
private IModelState state
private final VertexFormat format
private com.google.common.collect.ImmutableList<BakedQuad> quads
private com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures
private TextureAtlasSprite sprite
private final com.google.common.cache.LoadingCache<IModelState,OBJModel.OBJBakedModel> cache
public OBJBakedModel(OBJModel model, IModelState state, VertexFormat format, com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures)
public void scheduleRebake()
public java.util.List<BakedQuad> getQuads(IBlockState blockState, EnumFacing side, long rand)
getQuads
in interface IBakedModel
private com.google.common.collect.ImmutableList<BakedQuad> buildQuads(IModelState modelState)
private final void putVertexData(UnpackedBakedQuad.Builder builder, OBJModel.Vertex v, OBJModel.Normal faceNormal, OBJModel.TextureCoordinate defUV, TextureAtlasSprite sprite)
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
private void updateStateVisibilityMap(OBJModel.OBJState state)
public OBJModel.OBJBakedModel getCachedModel(IModelState state)
public OBJModel getModel()
public IModelState getState()
public OBJModel.OBJBakedModel getBakedModel()
public org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> handlePerspective(ItemCameraTransforms.TransformType cameraTransformType)
handlePerspective
in interface IBakedModel
public java.lang.String toString()
toString
in class java.lang.Object
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel