Class StructureBlockRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.StructureBlockRenderer
- All Implemented Interfaces:
BlockEntityRenderer<StructureBlockEntity>
,IBlockEntityRendererExtension<StructureBlockEntity>
public class StructureBlockRenderer
extends Object
implements BlockEntityRenderer<StructureBlockEntity>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox
(StructureBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.int
void
render
(StructureBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) private void
renderInvisibleBlocks
(StructureBlockEntity pBlockEntity, MultiBufferSource pBufferSource, PoseStack pPoseStack) private void
renderStructureVoids
(StructureBlockEntity pBlockEntity, VertexConsumer pBuffer, PoseStack pPoseStack) boolean
shouldRenderOffScreen
(StructureBlockEntity pBlockEntity) 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
shouldRender
-
Constructor Details
-
StructureBlockRenderer
-
-
Method Details
-
render
public void render(StructureBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) - Specified by:
render
in interfaceBlockEntityRenderer<StructureBlockEntity>
-
renderInvisibleBlocks
private void renderInvisibleBlocks(StructureBlockEntity pBlockEntity, MultiBufferSource pBufferSource, PoseStack pPoseStack) -
renderStructureVoids
private void renderStructureVoids(StructureBlockEntity pBlockEntity, VertexConsumer pBuffer, PoseStack pPoseStack) -
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreen
in interfaceBlockEntityRenderer<StructureBlockEntity>
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistance
in interfaceBlockEntityRenderer<StructureBlockEntity>
-
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<StructureBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-