Class BuiltInModel
java.lang.Object
net.minecraft.client.resources.model.BuiltInModel
- All Implemented Interfaces:
BakedModel
,IBakedModelExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemTransforms
private final ItemOverrides
private final TextureAtlasSprite
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltInModel
(ItemTransforms pItemTransforms, ItemOverrides pOverrides, TextureAtlasSprite pParticleTexture, boolean pUsesBlockLight) -
Method Summary
Modifier and TypeMethodDescriptiongetQuads
(BlockState pState, Direction pDirection, RandomSource pRandom) 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, getRenderTypes, getRenderTypes, useAmbientOcclusion
-
Field Details
-
itemTransforms
-
overrides
-
particleTexture
-
usesBlockLight
private final boolean usesBlockLight
-
-
Constructor Details
-
BuiltInModel
public BuiltInModel(ItemTransforms pItemTransforms, ItemOverrides pOverrides, TextureAtlasSprite pParticleTexture, boolean pUsesBlockLight)
-
-
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
-