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 ChunkRenderTypeSetprotected final List<RenderType> protected final booleanprotected final booleanprotected final List<RenderType> protected final ItemOverridesprotected final TextureAtlasSpriteprotected final ItemTransformsprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionSimpleBakedModel(List<BakedQuad> unculledFaces, Map<Direction, List<BakedQuad>> culledFaces, boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, TextureAtlasSprite particleIcon, ItemTransforms transforms, ItemOverrides overrides) Deprecated.Forge: Use variant with RenderTypeGroupSimpleBakedModel(List<BakedQuad> unculledFaces, Map<Direction, List<BakedQuad>> culledFaces, boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, TextureAtlasSprite particleIcon, ItemTransforms transforms, ItemOverrides overrides, RenderTypeGroup renderTypes) -
Method Summary
Modifier and TypeMethodDescriptiongetQuads(BlockState state, Direction direction, RandomSource random) getRenderTypes(ItemStack itemStack, boolean fabulous) Gets an ordered list ofrender typesto use when drawing this item.getRenderTypes(BlockState state, RandomSource rand, ModelData data) Gets the set ofrender typesto use when drawing this block in the level.booleanbooleanisGui3d()booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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> unculledFaces, Map<Direction, List<BakedQuad>> culledFaces, boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, TextureAtlasSprite particleIcon, ItemTransforms transforms, ItemOverrides overrides) Deprecated.Forge: Use variant with RenderTypeGroup -
SimpleBakedModel
public SimpleBakedModel(List<BakedQuad> unculledFaces, Map<Direction, List<BakedQuad>> culledFaces, boolean hasAmbientOcclusion, boolean usesBlockLight, boolean isGui3d, TextureAtlasSprite particleIcon, ItemTransforms transforms, ItemOverrides overrides, RenderTypeGroup renderTypes)
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction direction, RandomSource random) - Specified by:
getQuadsin interfaceBakedModel
-
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
-
getTransforms
- Specified by:
getTransformsin interfaceBakedModel
-
getOverrides
- Specified by:
getOverridesin interfaceBakedModel
-
getRenderTypes
Description copied from interface:IBakedModelExtensionGets the set ofrender typesto use when drawing this block in the level. Supported types are those returned byRenderType.chunkBufferLayers().By default, defers query to
ItemBlockRenderTypes.- Specified by:
getRenderTypesin interfaceIBakedModelExtension
-
getRenderTypes
Description copied from interface:IBakedModelExtensionGets an ordered list ofrender typesto use when drawing this item. All render types using theDefaultVertexFormat.NEW_ENTITYformat 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:
getRenderTypesin interfaceIBakedModelExtension- See Also:
-