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>
-
Field Summary
Fields inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension
INFINITE_EXTENT_AABB
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox
(StructureBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.int
void
render
(StructureBlockEntity p_112583_, float p_112584_, PoseStack p_112585_, MultiBufferSource p_112586_, int p_112587_, int p_112588_) private void
renderInvisibleBlocks
(StructureBlockEntity p_173677_, VertexConsumer p_173678_, BlockPos p_173679_, PoseStack p_173680_) boolean
shouldRenderOffScreen
(StructureBlockEntity p_112581_) 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 p_112583_, float p_112584_, PoseStack p_112585_, MultiBufferSource p_112586_, int p_112587_, int p_112588_) - Specified by:
render
in interfaceBlockEntityRenderer<StructureBlockEntity>
-
renderInvisibleBlocks
private void renderInvisibleBlocks(StructureBlockEntity p_173677_, VertexConsumer p_173678_, BlockPos p_173679_, PoseStack p_173680_) -
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.- Specified by:
getRenderBoundingBox
in interfaceIBlockEntityRendererExtension<StructureBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-