Class SimpleBakedModel
java.lang.Object
net.minecraft.client.resources.model.SimpleBakedModel
- All Implemented Interfaces:
BakedModel
,IBakedModelExtension
- Direct Known Subclasses:
EmptyModel.Baked
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ChunkRenderTypeSet
private final boolean
private final boolean
protected final RenderType
static final String
private final TextureAtlasSprite
private final ItemTransforms
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBakedModel
(List<BakedQuad> p_119489_, Map<Direction, List<BakedQuad>> p_119490_, boolean p_119491_, boolean p_119492_, boolean p_119493_, TextureAtlasSprite p_119494_, ItemTransforms p_119495_) Deprecated.Forge: Use variant with RenderTypeGroupSimpleBakedModel
(List<BakedQuad> p_119489_, Map<Direction, List<BakedQuad>> p_119490_, boolean p_119491_, boolean p_119492_, boolean p_119493_, TextureAtlasSprite p_119494_, ItemTransforms p_119495_, RenderTypeGroup renderTypes) -
Method Summary
Modifier and TypeMethodDescriptionstatic BakedModel
bakeElements
(List<BlockElement> p_387963_, TextureSlots p_388507_, SpriteGetter p_387357_, ModelState p_388846_, boolean p_386975_, boolean p_388143_, boolean p_386706_, ItemTransforms p_388032_) Deprecated.static BakedModel
bakeElements
(List<BlockElement> p_387963_, TextureSlots p_388507_, SpriteGetter p_387357_, ModelState p_388846_, boolean p_386975_, boolean p_388143_, boolean p_386706_, ItemTransforms p_388032_, Transformation rootTransform, RenderTypeGroup renderTypes) static BakedQuad
bakeFace
(BlockElement p_388164_, BlockElementFace p_388456_, TextureAtlasSprite p_388731_, Direction p_386700_, ModelState p_386475_) private static TextureAtlasSprite
findSprite
(SpriteGetter p_386599_, TextureSlots p_388750_, String p_386831_) getQuads
(BlockState p_235054_, Direction p_235055_, RandomSource p_235056_) getRenderType
(ItemStack itemStack) Gets therender type
to use when drawing this item.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) Gets the set ofrender types
to use when drawing this block in the level.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
applyTransform, getModelData, getParticleIcon, getQuads, getRenderPasses, useAmbientOcclusion
-
Field Details
-
PARTICLE_TEXTURE_REFERENCE
- See Also:
-
unculledFaces
-
culledFaces
-
hasAmbientOcclusion
private final boolean hasAmbientOcclusion -
isGui3d
private final boolean isGui3d -
usesBlockLight
private final boolean usesBlockLight -
particleIcon
-
transforms
-
blockRenderTypes
-
itemRenderType
-
-
Constructor Details
-
SimpleBakedModel
@Deprecated public SimpleBakedModel(List<BakedQuad> p_119489_, Map<Direction, List<BakedQuad>> p_119490_, boolean p_119491_, boolean p_119492_, boolean p_119493_, TextureAtlasSprite p_119494_, ItemTransforms p_119495_) Deprecated.Forge: Use variant with RenderTypeGroup -
SimpleBakedModel
public SimpleBakedModel(List<BakedQuad> p_119489_, Map<Direction, List<BakedQuad>> p_119490_, boolean p_119491_, boolean p_119492_, boolean p_119493_, TextureAtlasSprite p_119494_, ItemTransforms p_119495_, RenderTypeGroup renderTypes)
-
-
Method Details
-
bakeElements
@Deprecated public static BakedModel bakeElements(List<BlockElement> p_387963_, TextureSlots p_388507_, SpriteGetter p_387357_, ModelState p_388846_, boolean p_386975_, boolean p_388143_, boolean p_386706_, ItemTransforms p_388032_) Deprecated. -
bakeElements
public static BakedModel bakeElements(List<BlockElement> p_387963_, TextureSlots p_388507_, SpriteGetter p_387357_, ModelState p_388846_, boolean p_386975_, boolean p_388143_, boolean p_386706_, ItemTransforms p_388032_, Transformation rootTransform, RenderTypeGroup renderTypes) -
bakeFace
public static BakedQuad bakeFace(BlockElement p_388164_, BlockElementFace p_388456_, TextureAtlasSprite p_388731_, Direction p_386700_, ModelState p_386475_) -
findSprite
private static TextureAtlasSprite findSprite(SpriteGetter p_386599_, TextureSlots p_388750_, String p_386831_) -
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState p_235054_, @Nullable Direction p_235055_, RandomSource p_235056_) - Specified by:
getQuads
in interfaceBakedModel
-
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
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getTransforms
- Specified by:
getTransforms
in interfaceBakedModel
-
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
-
getRenderType
Description copied from interface:IBakedModelExtension
Gets therender type
to use when drawing this item. All render types using theDefaultVertexFormat.NEW_ENTITY
format are supported.This method will only be called on the models returned by
IBakedModelExtension.getRenderPasses(ItemStack)
.By default, defers query to
ItemBlockRenderTypes
.- Specified by:
getRenderType
in interfaceIBakedModelExtension
- See Also:
-