Class B3DLoader.BakedWrapper
- java.lang.Object
-
- net.minecraftforge.client.model.b3d.B3DLoader.BakedWrapper
-
- All Implemented Interfaces:
IBakedModel
,IForgeBakedModel
,IDynamicBakedModel
- Enclosing class:
- B3DLoader
private static final class B3DLoader.BakedWrapper extends java.lang.Object implements IDynamicBakedModel
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesHandlePerspectives()
Override to tell the new model loader that it shouldn't wrap this modelprivate 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
getParticleIcon()
java.util.List<BakedQuad>
getQuads(BlockState state, Direction side, java.util.Random rand, IModelData data)
IBakedModel
handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
boolean
isCustomRenderer()
boolean
isGui3d()
private void
putVertexData(IVertexConsumer consumer, B3DModel.Vertex v, Vector3f faceNormal, TextureAtlasSprite sprite)
boolean
useAmbientOcclusion()
boolean
usesBlockLight()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.renderer.model.IBakedModel
getTransforms
-
Methods inherited from interface net.minecraftforge.client.model.data.IDynamicBakedModel
getQuads
-
Methods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getBakedModel, getLayerModels, getModelData, getParticleTexture, isAmbientOcclusion, isLayered
-
-
-
-
Field Detail
-
node
private final B3DModel.Node<?> node
-
state
private final IModelTransform state
-
smooth
private final boolean smooth
-
gui3d
private final boolean gui3d
-
isSideLit
private final boolean isSideLit
-
meshes
private final com.google.common.collect.ImmutableSet<java.lang.String> meshes
-
textures
private final com.google.common.collect.ImmutableMap<java.lang.String,TextureAtlasSprite> textures
-
cache
private final com.google.common.cache.LoadingCache<java.lang.Integer,B3DLoader.B3DState> cache
-
quads
private com.google.common.collect.ImmutableList<BakedQuad> quads
-
-
Constructor Detail
-
BakedWrapper
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)
-
BakedWrapper
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)
-
-
Method Detail
-
getQuads
public java.util.List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, java.util.Random rand, IModelData data)
- Specified by:
getQuads
in interfaceIDynamicBakedModel
- Specified by:
getQuads
in interfaceIForgeBakedModel
-
generateQuads
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)
-
putVertexData
private final void putVertexData(IVertexConsumer consumer, B3DModel.Vertex v, Vector3f faceNormal, TextureAtlasSprite sprite)
-
useAmbientOcclusion
public boolean useAmbientOcclusion()
- Specified by:
useAmbientOcclusion
in interfaceIBakedModel
-
isGui3d
public boolean isGui3d()
- Specified by:
isGui3d
in interfaceIBakedModel
-
usesBlockLight
public boolean usesBlockLight()
- Specified by:
usesBlockLight
in interfaceIBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()
- Specified by:
isCustomRenderer
in interfaceIBakedModel
-
getParticleIcon
public TextureAtlasSprite getParticleIcon()
- Specified by:
getParticleIcon
in interfaceIBakedModel
-
doesHandlePerspectives
public boolean doesHandlePerspectives()
Description copied from interface:IForgeBakedModel
Override to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectives
in interfaceIForgeBakedModel
-
handlePerspective
public IBakedModel handlePerspective(ItemCameraTransforms.TransformType cameraTransformType, MatrixStack mat)
- Specified by:
handlePerspective
in interfaceIForgeBakedModel
-
getOverrides
public ItemOverrideList getOverrides()
- Specified by:
getOverrides
in interfaceIBakedModel
-
-