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