Package net.minecraftforge.debug.block
Class FullPotsAccessorDemo.ClientHandler.DioritePotModel
java.lang.Object
net.minecraftforge.client.model.BakedModelWrapper<BakedModel>
net.minecraftforge.debug.block.FullPotsAccessorDemo.ClientHandler.DioritePotModel
- All Implemented Interfaces:
BakedModel
,IForgeBakedModel
- Enclosing class:
- FullPotsAccessorDemo.ClientHandler
private static class FullPotsAccessorDemo.ClientHandler.DioritePotModel
extends BakedModelWrapper<BakedModel>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ChunkRenderTypeSet
private static final ResourceLocation
private static final ResourceLocation
Fields inherited from class net.minecraftforge.client.model.BakedModelWrapper
originalModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPlantQuads
(Block plant, @Nullable Direction face, RandomSource rand, @Nullable RenderType renderType) getQuads
(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull 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
(@NotNull BlockState state, @NotNull RandomSource rand, @NotNull ModelData data) Gets the set ofrender types
to use when drawing this block in the level.Methods inherited from class net.minecraftforge.client.model.BakedModelWrapper
applyTransform, getModelData, getOverrides, getParticleIcon, getParticleIcon, getQuads, getRenderPasses, getRenderTypes, getTransforms, isCustomRenderer, isGui3d, useAmbientOcclusion, useAmbientOcclusion, useAmbientOcclusion, usesBlockLight
-
Field Details
-
CUTOUT
-
POT_TEXTURE
-
DIRT_TEXTURE
-
-
Constructor Details
-
DioritePotModel
-
-
Method Details
-
getQuads
@NotNull public @NotNull List<BakedQuad> getQuads(@Nullable @Nullable BlockState state, @Nullable @Nullable Direction side, @NotNull @NotNull RandomSource rand, @NotNull @NotNull ModelData extraData, @Nullable @Nullable RenderType renderType) Description copied from interface:IForgeBakedModel
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 interfaceIForgeBakedModel
- Overrides:
getQuads
in classBakedModelWrapper<BakedModel>
-
getPlantQuads
private List<BakedQuad> getPlantQuads(Block plant, @Nullable @Nullable Direction face, RandomSource rand, @Nullable @Nullable RenderType renderType) -
getRenderTypes
public ChunkRenderTypeSet getRenderTypes(@NotNull @NotNull BlockState state, @NotNull @NotNull RandomSource rand, @NotNull @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
- Overrides:
getRenderTypes
in classBakedModelWrapper<BakedModel>
-