private static final class B3DLoader.BakedWrapper extends java.lang.Object implements IDynamicBakedModel
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.LoadingCache<java.lang.Integer,B3DLoader.B3DState> |
cache |
private boolean |
gui3d |
private boolean |
isSideLit |
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 IModelTransform |
state |
private com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> |
textures |
Constructor and Description |
---|
BakedWrapper(B3DModel.Node<?> node,
IModelTransform state,
boolean smooth,
boolean gui3d,
boolean isSideLit,
com.google.common.collect.ImmutableSet<java.lang.String> meshes,
com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures) |
BakedWrapper(B3DModel.Node<?> node,
IModelTransform state,
boolean smooth,
boolean gui3d,
boolean isSideLit,
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 |
---|---|
boolean |
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this model
|
boolean |
func_230044_c_() |
private void |
generateQuads(com.google.common.collect.ImmutableList.Builder<BakedQuad> builder,
B3DModel.Node<?> node,
IModelTransform state,
com.google.common.collect.ImmutableList<java.lang.String> path) |
ItemOverrideList |
getOverrides() |
TextureAtlasSprite |
getParticleTexture() |
java.util.List<BakedQuad> |
getQuads(BlockState state,
Direction side,
java.util.Random rand,
IModelData data) |
IBakedModel |
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType,
MatrixStack mat) |
boolean |
isAmbientOcclusion() |
boolean |
isBuiltInRenderer() |
boolean |
isGui3d() |
private void |
putVertexData(IVertexConsumer consumer,
B3DModel.Vertex v,
Vector3f faceNormal,
TextureAtlasSprite sprite) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQuads
getItemCameraTransforms
getBakedModel, getModelData, getParticleTexture, isAmbientOcclusion
private final B3DModel.Node<?> node
private final IModelTransform state
private final boolean smooth
private final boolean gui3d
private final boolean isSideLit
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, IModelTransform state, boolean smooth, boolean gui3d, boolean isSideLit, com.google.common.collect.ImmutableSet<java.lang.String> meshes, com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures)
public BakedWrapper(B3DModel.Node<?> node, IModelTransform state, boolean smooth, boolean gui3d, boolean isSideLit, 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 BlockState state, @Nullable Direction side, java.util.Random rand, IModelData data)
getQuads
in interface IForgeBakedModel
getQuads
in interface IDynamicBakedModel
private void generateQuads(com.google.common.collect.ImmutableList.Builder<BakedQuad> builder, B3DModel.Node<?> node, IModelTransform state, com.google.common.collect.ImmutableList<java.lang.String> path)
private final void putVertexData(IVertexConsumer consumer, B3DModel.Vertex v, Vector3f faceNormal, TextureAtlasSprite sprite)
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 boolean doesHandlePerspectives()
IForgeBakedModel
doesHandlePerspectives
in interface IForgeBakedModel
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
handlePerspective
in interface IForgeBakedModel
public ItemOverrideList getOverrides()
getOverrides
in interface IBakedModel