Class B3DLoader.BakedWrapper
java.lang.Object
net.minecraftforge.client.model.b3d.B3DLoader.BakedWrapper
- All Implemented Interfaces:
BakedModel,IForgeBakedModel,IDynamicBakedModel
- Enclosing class:
- B3DLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.common.cache.LoadingCache<Integer,B3DLoader.B3DState>private booleanprivate booleanprivate com.google.common.collect.ImmutableSet<String>private B3DModel.Node<?>private com.google.common.collect.ImmutableList<BakedQuad>private booleanprivate ModelStateprivate com.google.common.collect.ImmutableMap<String,TextureAtlasSprite> -
Constructor Summary
ConstructorsConstructorDescriptionBakedWrapper(B3DModel.Node<?> node, ModelState state, boolean smooth, boolean gui3d, boolean isSideLit, com.google.common.collect.ImmutableSet<String> meshes, com.google.common.collect.ImmutableMap<String,TextureAtlasSprite> textures)BakedWrapper(B3DModel.Node<?> node, ModelState state, boolean smooth, boolean gui3d, boolean isSideLit, com.google.common.collect.ImmutableSet<String> meshes, com.google.common.collect.ImmutableMap<String,TextureAtlasSprite> textures, com.google.common.cache.LoadingCache<Integer,B3DLoader.B3DState> cache) -
Method Summary
Modifier and TypeMethodDescriptionbooleanOverride to tell the new model loader that it shouldn't wrap this modelprivate voidgenerateQuads(com.google.common.collect.ImmutableList.Builder<BakedQuad> builder, B3DModel.Node<?> node, ModelState state, com.google.common.collect.ImmutableList<String> path)getQuads(BlockState state, Direction side, Random rand, IModelData data)handlePerspective(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack)booleanbooleanisGui3d()private voidputVertexData(IVertexConsumer consumer, B3DModel.Vertex v, Vector3f faceNormal, TextureAtlasSprite sprite)booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.model.BakedModel
getTransformsMethods inherited from interface net.minecraftforge.client.model.data.IDynamicBakedModel
getQuadsMethods inherited from interface net.minecraftforge.client.extensions.IForgeBakedModel
getLayerModels, getModelData, getParticleIcon, isAmbientOcclusion, isLayered
-
Field Details
-
node
-
state
-
smooth
private final boolean smooth -
gui3d
private final boolean gui3d -
isSideLit
private final boolean isSideLit -
meshes
-
textures
-
cache
-
quads
-
-
Constructor Details
-
BakedWrapper
public BakedWrapper(B3DModel.Node<?> node, ModelState state, boolean smooth, boolean gui3d, boolean isSideLit, com.google.common.collect.ImmutableSet<String> meshes, com.google.common.collect.ImmutableMap<String,TextureAtlasSprite> textures) -
BakedWrapper
public BakedWrapper(B3DModel.Node<?> node, ModelState state, boolean smooth, boolean gui3d, boolean isSideLit, com.google.common.collect.ImmutableSet<String> meshes, com.google.common.collect.ImmutableMap<String,TextureAtlasSprite> textures, com.google.common.cache.LoadingCache<Integer,B3DLoader.B3DState> cache)
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, Random rand, IModelData data)- Specified by:
getQuadsin interfaceIDynamicBakedModel- Specified by:
getQuadsin interfaceIForgeBakedModel
-
generateQuads
private void generateQuads(com.google.common.collect.ImmutableList.Builder<BakedQuad> builder, B3DModel.Node<?> node, ModelState state, com.google.common.collect.ImmutableList<String> path) -
putVertexData
private final void putVertexData(IVertexConsumer consumer, B3DModel.Vertex v, Vector3f faceNormal, TextureAtlasSprite sprite) -
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusionin interfaceBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3din interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLightin interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRendererin interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIconin interfaceBakedModel
-
doesHandlePerspectives
public boolean doesHandlePerspectives()Description copied from interface:IForgeBakedModelOverride to tell the new model loader that it shouldn't wrap this model- Specified by:
doesHandlePerspectivesin interfaceIForgeBakedModel
-
handlePerspective
public BakedModel handlePerspective(ItemTransforms.TransformType cameraTransformType, PoseStack poseStack)- Specified by:
handlePerspectivein interfaceIForgeBakedModel
-
getOverrides
- Specified by:
getOverridesin interfaceBakedModel
-