Class ChestRenderer<T extends BlockEntity & LidBlockEntity>
java.lang.Object
net.minecraft.client.renderer.blockentity.ChestRenderer<T>
- All Implemented Interfaces:
BlockEntityRenderer<T>
,IBlockEntityRendererExtension<T>
public class ChestRenderer<T extends BlockEntity & LidBlockEntity>
extends Object
implements BlockEntityRenderer<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChestModel
private final ChestModel
private final ChestModel
private final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Material
getMaterial
(T blockEntity, ChestType chestType) getRenderBoundingBox
(T blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.private void
render
(PoseStack p_112370_, VertexConsumer p_112371_, ChestModel p_364178_, float p_112375_, int p_112376_, int p_112377_) void
render
(T p_112363_, float p_112364_, PoseStack p_112365_, MultiBufferSource p_112366_, int p_112367_, int p_112368_, Vec3 p_401038_) static boolean
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
-
singleModel
-
doubleLeftModel
-
doubleRightModel
-
xmasTextures
private final boolean xmasTextures
-
-
Constructor Details
-
ChestRenderer
-
-
Method Details
-
xmasTextures
public static boolean xmasTextures() -
render
public void render(T p_112363_, float p_112364_, PoseStack p_112365_, MultiBufferSource p_112366_, int p_112367_, int p_112368_, Vec3 p_401038_) - Specified by:
render
in interfaceBlockEntityRenderer<T extends BlockEntity & LidBlockEntity>
-
render
private void render(PoseStack p_112370_, VertexConsumer p_112371_, ChestModel p_364178_, float p_112375_, int p_112376_, int p_112377_) -
getMaterial
-
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 & LidBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-