Class SimpleBakedModel
java.lang.Object
net.minecraft.client.resources.model.SimpleBakedModel
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
- Direct Known Subclasses:
EmptyModel.Baked
-
Nested Class Summary
-
Field Summary
Modifier 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
ConstructorDescriptionSimpleBakedModel
(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_, ItemOverrides p_119496_) 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_, ItemOverrides p_119496_, RenderTypeGroup renderTypes) -
Method Summary
Modifier and TypeMethodDescriptiongetQuads
(BlockState p_235054_, Direction p_235055_, RandomSource p_235056_) getRenderTypes
(@NotNull BlockState state, @NotNull RandomSource rand, ModelData data) Gets the set ofrender types
to use when drawing this block in the level.getRenderTypes
(ItemStack itemStack, boolean fabulous) Gets an ordered list ofrender types
to use when drawing this item.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.minecraftforge.client.extensions.IForgeBakedModel
applyTransform, getModelData, getParticleIcon, getQuads, getRenderPasses, useAmbientOcclusion, 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> p_119489_, Map<Direction, List<BakedQuad>> p_119490_, boolean p_119491_, boolean p_119492_, boolean p_119493_, TextureAtlasSprite p_119494_, ItemTransforms p_119495_, ItemOverrides p_119496_) 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_, ItemOverrides p_119496_, RenderTypeGroup renderTypes)
-
-
Method Details
-
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
-
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
public ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull ModelData data) Description copied from interface:IForgeBakedModel
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 interfaceIForgeBakedModel
-
getRenderTypes
Description copied from interface:IForgeBakedModel
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
IForgeBakedModel.getRenderPasses(ItemStack, boolean)
.By default, defers query to
ItemBlockRenderTypes
.- Specified by:
getRenderTypes
in interfaceIForgeBakedModel
- See Also:
-