Class FullPotsAccessorDemo.ClientHandler.DioritePotModel
java.lang.Object
net.neoforged.neoforge.client.model.BakedModelWrapper<BakedModel>
net.neoforged.neoforge.oldtest.block.FullPotsAccessorDemo.ClientHandler.DioritePotModel
- All Implemented Interfaces:
BakedModel
,IBakedModelExtension
- Enclosing class:
FullPotsAccessorDemo.ClientHandler
private static class FullPotsAccessorDemo.ClientHandler.DioritePotModel
extends BakedModelWrapper<BakedModel>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ChunkRenderTypeSet
private static final ResourceLocation
private static final ResourceLocation
Fields inherited from class net.neoforged.neoforge.client.model.BakedModelWrapper
originalModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPlantQuads
(Block plant, @Nullable Direction face, RandomSource rand, @Nullable RenderType renderType) getQuads
(@Nullable BlockState state, @Nullable Direction side, RandomSource rand, ModelData extraData, @Nullable RenderType renderType) A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.getRenderTypes
(BlockState state, RandomSource rand, ModelData data) Gets the set ofrender types
to use when drawing this block in the level.Methods inherited from class net.neoforged.neoforge.client.model.BakedModelWrapper
applyTransform, getModelData, getOverrides, getParticleIcon, getParticleIcon, getQuads, getRenderPasses, getRenderTypes, getTransforms, isCustomRenderer, isGui3d, useAmbientOcclusion, useAmbientOcclusion, usesBlockLight
-
Field Details
-
CUTOUT
-
POT_TEXTURE
-
DIRT_TEXTURE
-
-
Constructor Details
-
DioritePotModel
-
-
Method Details
-
getQuads
public List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, RandomSource rand, ModelData extraData, @Nullable @Nullable RenderType renderType) Description copied from interface:IBakedModelExtension
A nullRenderType
is used for the breaking overlay as well as non-standard rendering, so models should return all their quads.- Specified by:
getQuads
in interfaceIBakedModelExtension
- Overrides:
getQuads
in classBakedModelWrapper<BakedModel>
-
getPlantQuads
private List<BakedQuad> getPlantQuads(Block plant, @Nullable @Nullable Direction face, RandomSource rand, @Nullable @Nullable RenderType renderType) -
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
- Overrides:
getRenderTypes
in classBakedModelWrapper<BakedModel>
-