Class WrapperBlockStateModel
java.lang.Object
net.fabricmc.fabric.api.client.model.loading.v1.wrapper.WrapperBlockStateModel
- All Implemented Interfaces:
BlockStateModel
A simple implementation of
BlockStateModel
that delegates all method calls to the wrapped
field.
Implementations must set the wrapped
field somehow.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.render.model.BlockStateModel
BlockStateModel.CachedUnbaked, BlockStateModel.Unbaked, BlockStateModel.UnbakedGrouped
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
WrapperBlockStateModel
(BlockStateModel wrapped) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParts
(Random random, List<BlockModelPart> parts) @Nullable Object
createGeometryKey
(BlockRenderView blockView, BlockPos pos, BlockState state, Random random) void
emitQuads
(QuadEmitter emitter, BlockRenderView blockView, BlockPos pos, BlockState state, Random random, Predicate<@Nullable Direction> cullTest) particleSprite
(BlockRenderView blockView, BlockPos pos, BlockState state)
-
Field Details
-
wrapped
-
-
Constructor Details
-
WrapperBlockStateModel
protected WrapperBlockStateModel() -
WrapperBlockStateModel
-
-
Method Details
-
addParts
- Specified by:
addParts
in interfaceBlockStateModel
-
getParts
- Specified by:
getParts
in interfaceBlockStateModel
-
particleSprite
- Specified by:
particleSprite
in interfaceBlockStateModel
-
emitQuads
public void emitQuads(QuadEmitter emitter, BlockRenderView blockView, BlockPos pos, BlockState state, Random random, Predicate<@Nullable Direction> cullTest) -
createGeometryKey
@Nullable public @Nullable Object createGeometryKey(BlockRenderView blockView, BlockPos pos, BlockState state, Random random) -
particleSprite
-