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 anAABBthat controls the visible scope of thisBlockEntityRenderer.intvoidrender(StructureBlockEntity p_112583_, float p_112584_, PoseStack p_112585_, MultiBufferSource p_112586_, int p_112587_, int p_112588_) private voidrenderInvisibleBlocks(StructureBlockEntity p_173677_, MultiBufferSource p_352319_, PoseStack p_173680_) private voidrenderStructureVoids(StructureBlockEntity p_352299_, VertexConsumer p_352113_, PoseStack p_352426_) booleanshouldRenderOffScreen(StructureBlockEntity p_112581_) 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
shouldRender
-
Constructor Details
-
StructureBlockRenderer
-
-
Method Details
-
render
public void render(StructureBlockEntity p_112583_, float p_112584_, PoseStack p_112585_, MultiBufferSource p_112586_, int p_112587_, int p_112588_) - Specified by:
renderin interfaceBlockEntityRenderer<StructureBlockEntity>
-
renderInvisibleBlocks
private void renderInvisibleBlocks(StructureBlockEntity p_173677_, MultiBufferSource p_352319_, PoseStack p_173680_) -
renderStructureVoids
private void renderStructureVoids(StructureBlockEntity p_352299_, VertexConsumer p_352113_, PoseStack p_352426_) -
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreenin interfaceBlockEntityRenderer<StructureBlockEntity>
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceBlockEntityRenderer<StructureBlockEntity>
-
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<StructureBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-