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 anAABBthat controls the visible scope of thisBlockEntityRenderer.intvoidrender(T blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) private voidrenderInvisibleBlocks(T blockEntity, BlockGetter level, BlockPos pos, Vec3i boxSize, MultiBufferSource bufferSource, PoseStack poseStack) private voidrenderStructureVoids(T blockEntity, BlockPos pos, Vec3i boxSize, VertexConsumer consumer, PoseStack poseStack) booleanMethods 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
-
BlockEntityWithBoundingBoxRenderer
-
-
Method Details
-
render
public void render(T blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) - Specified by:
renderin interfaceBlockEntityRenderer<T extends BlockEntity & BoundingBoxRenderable>
-
renderInvisibleBlocks
private void renderInvisibleBlocks(T blockEntity, BlockGetter level, BlockPos pos, Vec3i boxSize, MultiBufferSource bufferSource, PoseStack poseStack) -
renderStructureVoids
private void renderStructureVoids(T blockEntity, BlockPos pos, Vec3i boxSize, VertexConsumer consumer, PoseStack poseStack) -
shouldRenderOffScreen
public boolean shouldRenderOffScreen()- Specified by:
shouldRenderOffScreenin interfaceBlockEntityRenderer<T extends BlockEntity & BoundingBoxRenderable>
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceBlockEntityRenderer<T extends BlockEntity & BoundingBoxRenderable>
-
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<T extends BlockEntity & BoundingBoxRenderable>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-