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 TypeMethodDescriptionvoidgetExtents(Direction direction, float progress, Set<Vector3f> output) getRenderBoundingBox(ShulkerBoxBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private voidprepareModel(PoseStack poseStack, Direction direction, float progress) voidrender(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Direction facing, float progress, Material material) voidrender(ShulkerBoxBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) - Specified by:
renderin interfaceBlockEntityRenderer<ShulkerBoxBlockEntity>
-
render
public void render(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Direction facing, float progress, Material material) -
prepareModel
-
getExtents
-
getRenderBoundingBox
Description copied from interface:IBlockEntityRendererExtensionReturn anAABBthat controls the visible scope of thisBlockEntityRenderer. Defaults to the unit cube at the given position.AABB.INFINITEcan be used to declare the BER should be visible everywhere.- Specified by:
getRenderBoundingBoxin interfaceIBlockEntityRendererExtension<ShulkerBoxBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-