private static final class B3DLoader.BakedWrapper extends java.lang.Object implements IBakedModel
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.LoadingCache<java.lang.Integer,B3DLoader.B3DState> |
cache |
private VertexFormat |
format |
private boolean |
gui3d |
private com.google.common.collect.ImmutableSet<java.lang.String> |
meshes |
private B3DModel.Node<?> |
node |
private com.google.common.collect.ImmutableList<BakedQuad> |
quads |
private boolean |
smooth |
private IModelState |
state |
private com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> |
textures |
Constructor and Description |
---|
BakedWrapper(B3DModel.Node<?> node,
IModelState state,
boolean smooth,
boolean gui3d,
VertexFormat format,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures) |
BakedWrapper(B3DModel.Node<?> node,
IModelState state,
boolean smooth,
boolean gui3d,
VertexFormat format,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures,
com.google.common.cache.LoadingCache<java.lang.Integer,B3DLoader.B3DState> cache) |
Modifier and Type | Method and Description |
---|---|
private void |
generateQuads(com.google.common.collect.ImmutableList.Builder<BakedQuad> builder,
B3DModel.Node<?> node,
IModelState state,
com.google.common.collect.ImmutableList<java.lang.String> path) |
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 cameraTransformType) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
private void |
putVertexData(UnpackedBakedQuad.Builder builder,
B3DModel.Vertex v,
javax.vecmath.Vector3f faceNormal,
TextureAtlasSprite sprite) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemCameraTransforms, isAmbientOcclusion
private final B3DModel.Node<?> node
private final IModelState state
private final boolean smooth
private final boolean gui3d
private final VertexFormat format
private final com.google.common.collect.ImmutableSet<java.lang.String> meshes
private final com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures
private final com.google.common.cache.LoadingCache<java.lang.Integer,B3DLoader.B3DState> cache
private com.google.common.collect.ImmutableList<BakedQuad> quads
public BakedWrapper(B3DModel.Node<?> node, IModelState state, boolean smooth, boolean gui3d, VertexFormat format, com.google.common.collect.ImmutableSet<java.lang.String> meshes, com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures)
public BakedWrapper(B3DModel.Node<?> node, IModelState state, boolean smooth, boolean gui3d, VertexFormat format, com.google.common.collect.ImmutableSet<java.lang.String> meshes, com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures, com.google.common.cache.LoadingCache<java.lang.Integer,B3DLoader.B3DState> cache)
public java.util.List<BakedQuad> getQuads(@Nullable IBlockState state, @Nullable EnumFacing side, long rand)
getQuads
in interface IBakedModel
private void generateQuads(com.google.common.collect.ImmutableList.Builder<BakedQuad> builder, B3DModel.Node<?> node, IModelState state, com.google.common.collect.ImmutableList<java.lang.String> path)
private final void putVertexData(UnpackedBakedQuad.Builder builder, B3DModel.Vertex v, javax.vecmath.Vector3f faceNormal, 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
public org.apache.commons.lang3.tuple.Pair<? extends IBakedModel,javax.vecmath.Matrix4f> handlePerspective(ItemCameraTransforms.TransformType cameraTransformType)
handlePerspective
in interface IBakedModel
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel