Class BlockEntityWithBoundingBoxRenderer<T extends BlockEntity & BoundingBoxRenderable>
java.lang.Object
net.minecraft.client.renderer.blockentity.BlockEntityWithBoundingBoxRenderer<T>
- All Implemented Interfaces:
BlockEntityRenderer<T>
,IBlockEntityRendererExtension<T>
public class BlockEntityWithBoundingBoxRenderer<T extends BlockEntity & BoundingBoxRenderable>
extends Object
implements BlockEntityRenderer<T>
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox
(BlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.int
void
render
(T p_397324_, float p_397611_, PoseStack p_397388_, MultiBufferSource p_397625_, int p_397985_, int p_397795_, Vec3 p_401190_) private void
renderInvisibleBlocks
(T p_397069_, BlockGetter p_397190_, BlockPos p_397106_, Vec3i p_397027_, MultiBufferSource p_397495_, PoseStack p_396990_) private void
renderStructureVoids
(T p_397113_, BlockPos p_397422_, Vec3i p_398022_, VertexConsumer p_397021_, PoseStack p_397646_) boolean
shouldRenderOffScreen
(T p_397618_) 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
-
BlockEntityWithBoundingBoxRenderer
-
-
Method Details
-
render
public void render(T p_397324_, float p_397611_, PoseStack p_397388_, MultiBufferSource p_397625_, int p_397985_, int p_397795_, Vec3 p_401190_) - Specified by:
render
in interfaceBlockEntityRenderer<T extends BlockEntity & BoundingBoxRenderable>
-
renderInvisibleBlocks
private void renderInvisibleBlocks(T p_397069_, BlockGetter p_397190_, BlockPos p_397106_, Vec3i p_397027_, MultiBufferSource p_397495_, PoseStack p_396990_) -
renderStructureVoids
private void renderStructureVoids(T p_397113_, BlockPos p_397422_, Vec3i p_398022_, VertexConsumer p_397021_, PoseStack p_397646_) -
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreen
in interfaceBlockEntityRenderer<T extends BlockEntity & BoundingBoxRenderable>
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistance
in interfaceBlockEntityRenderer<T extends BlockEntity & BoundingBoxRenderable>
-
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<T extends BlockEntity & BoundingBoxRenderable>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-