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