Class ShulkerBoxRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.ShulkerBoxRenderer
- All Implemented Interfaces:
BlockEntityRenderer<ShulkerBoxBlockEntity>
,IBlockEntityRendererExtension<ShulkerBoxBlockEntity>
public class ShulkerBoxRenderer
extends Object
implements BlockEntityRenderer<ShulkerBoxBlockEntity>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getExtents
(Direction pDirection, float pProgress, Set<org.joml.Vector3f> pOutput) getRenderBoundingBox
(ShulkerBoxBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.private void
prepareModel
(PoseStack pPoseStack, Direction pDirection, float pProgress) void
render
(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Direction pFacing, float pProgress, Material pMaterial) void
render
(ShulkerBoxBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
model
-
-
Constructor Details
-
ShulkerBoxRenderer
-
ShulkerBoxRenderer
-
-
Method Details
-
render
public void render(ShulkerBoxBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) - Specified by:
render
in interfaceBlockEntityRenderer<ShulkerBoxBlockEntity>
-
render
public void render(PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Direction pFacing, float pProgress, Material pMaterial) -
prepareModel
-
getExtents
-
getRenderBoundingBox
Description copied from interface:IBlockEntityRendererExtension
Return anAABB
that controls the visible scope of thisBlockEntityRenderer
. Defaults to the unit cube at the given position.AABB.INFINITE
can be used to declare the BER should be visible everywhere.- Specified by:
getRenderBoundingBox
in interfaceIBlockEntityRendererExtension<ShulkerBoxBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-