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
protected final List
<RenderType> protected final boolean
protected final boolean
protected final List
<RenderType> protected final ItemOverrides
protected final TextureAtlasSprite
protected final ItemTransforms
protected final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleBakedModel
(List<BakedQuad> pUnculledFaces, Map<Direction, List<BakedQuad>> pCulledFaces, boolean pHasAmbientOcclusion, boolean pUsesBlockLight, boolean pIsGui3d, TextureAtlasSprite pParticleIcon, ItemTransforms pTransforms, ItemOverrides pOverrides) Deprecated.Forge: Use variant with RenderTypeGroupSimpleBakedModel
(List<BakedQuad> pUnculledFaces, Map<Direction, List<BakedQuad>> pCulledFaces, boolean pHasAmbientOcclusion, boolean pUsesBlockLight, boolean pIsGui3d, TextureAtlasSprite pParticleIcon, ItemTransforms pTransforms, ItemOverrides pOverrides, RenderTypeGroup renderTypes) -
Method Summary
Modifier and TypeMethodDescriptiongetQuads
(BlockState pState, Direction pDirection, RandomSource pRandom) getRenderTypes
(ItemStack itemStack, boolean fabulous) Gets an ordered list ofrender types
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
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
-
unculledFaces
-
culledFaces
-
hasAmbientOcclusion
protected final boolean hasAmbientOcclusion -
isGui3d
protected final boolean isGui3d -
usesBlockLight
protected final boolean usesBlockLight -
particleIcon
-
transforms
-
overrides
-
blockRenderTypes
-
itemRenderTypes
-
fabulousItemRenderTypes
-
-
Constructor Details
-
SimpleBakedModel
@Deprecated public SimpleBakedModel(List<BakedQuad> pUnculledFaces, Map<Direction, List<BakedQuad>> pCulledFaces, boolean pHasAmbientOcclusion, boolean pUsesBlockLight, boolean pIsGui3d, TextureAtlasSprite pParticleIcon, ItemTransforms pTransforms, ItemOverrides pOverrides) Deprecated.Forge: Use variant with RenderTypeGroup -
SimpleBakedModel
public SimpleBakedModel(List<BakedQuad> pUnculledFaces, Map<Direction, List<BakedQuad>> pCulledFaces, boolean pHasAmbientOcclusion, boolean pUsesBlockLight, boolean pIsGui3d, TextureAtlasSprite pParticleIcon, ItemTransforms pTransforms, ItemOverrides pOverrides, RenderTypeGroup renderTypes)
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState pState, @Nullable Direction pDirection, RandomSource pRandom) - 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
-
isCustomRenderer
public boolean isCustomRenderer()- Specified by:
isCustomRenderer
in interfaceBakedModel
-
getParticleIcon
- Specified by:
getParticleIcon
in interfaceBakedModel
-
getTransforms
- Specified by:
getTransforms
in interfaceBakedModel
-
getOverrides
- Specified by:
getOverrides
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
-
getRenderTypes
Description copied from interface:IBakedModelExtension
Gets an ordered list ofrender types
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, boolean)
.By default, defers query to
ItemBlockRenderTypes
.- Specified by:
getRenderTypes
in interfaceIBakedModelExtension
- See Also:
-