Class SeparateTransformsModel.Baked
java.lang.Object
net.neoforged.neoforge.client.model.SeparateTransformsModel.Baked
- All Implemented Interfaces:
BakedModel
,IBakedModelExtension
,IDynamicBakedModel
- Enclosing class:
SeparateTransformsModel
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BakedModel
private final boolean
private final boolean
private final boolean
private final ItemOverrides
private final TextureAtlasSprite
private final com.google.common.collect.ImmutableMap
<ItemDisplayContext, BakedModel> -
Constructor Summary
ConstructorDescriptionBaked
(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BakedModel> perspectives) -
Method Summary
Modifier and TypeMethodDescriptionapplyTransform
(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) Applies a transform for the giveninvalid reference
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered.getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData data, @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) Gets the set ofrender types
to use when drawing this block in the level.boolean
boolean
isGui3d()
boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.neoforge.client.extensions.IBakedModelExtension
getModelData, getParticleIcon, getRenderPasses, getRenderTypes, useAmbientOcclusion
Methods inherited from interface net.neoforged.neoforge.client.model.IDynamicBakedModel
getQuads
-
Field Details
-
isAmbientOcclusion
private final boolean isAmbientOcclusion -
isGui3d
private final boolean isGui3d -
isSideLit
private final boolean isSideLit -
particle
-
overrides
-
baseModel
-
perspectives
-
-
Constructor Details
-
Baked
public Baked(boolean isAmbientOcclusion, boolean isGui3d, boolean isSideLit, TextureAtlasSprite particle, ItemOverrides overrides, BakedModel baseModel, com.google.common.collect.ImmutableMap<ItemDisplayContext, BakedModel> perspectives)
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, RandomSource rand, ModelData data, @Nullable @Nullable RenderType renderType) Description copied from interface:IBakedModelExtension
A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.- Specified by:
getQuads
in interfaceIBakedModelExtension
- Specified by:
getQuads
in interfaceIDynamicBakedModel
-
useAmbientOcclusion
public boolean useAmbientOcclusion()- Specified by:
useAmbientOcclusion
in interfaceBakedModel
-
isGui3d
public boolean isGui3d()- Specified by:
isGui3d
in interfaceBakedModel
-
usesBlockLight
public boolean usesBlockLight()- Specified by:
usesBlockLight
in interfaceBakedModel
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
in interfaceBakedModel
-
getTransforms
- Specified by:
getTransforms
in interfaceBakedModel
-
applyTransform
public BakedModel applyTransform(ItemDisplayContext cameraTransformType, PoseStack poseStack, boolean applyLeftHandTransform) Description copied from interface:IBakedModelExtension
Applies a transform for the giveninvalid reference
ItemTransforms.TransformType
applyLeftHandTransform
, and returns the model to be rendered.- Specified by:
applyTransform
in interfaceIBakedModelExtension
-
getRenderTypes
Description copied from interface:IBakedModelExtension
Gets the set ofrender types
to use when drawing this block in the level. Supported types are those returned byRenderType.chunkBufferLayers()
.By default, defers query to
ItemBlockRenderTypes
.- Specified by:
getRenderTypes
in interfaceIBakedModelExtension
-