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 SummaryFieldsModifier and TypeFieldDescriptionprivate final ModelPartprivate static final Stringprivate final ModelPartprivate final ModelPartprivate final ModelPartprivate final ModelPartprivate final ModelPartprivate final ModelPartprivate final ModelPartprivate static final Stringprivate final ModelPartprivate static final Stringprivate booleanFields inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtensionINFINITE_EXTENT_AABB
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitionstatic LayerDefinitionprotected MaterialgetMaterial(T blockEntity, ChestType chestType) getRenderBoundingBox(T blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private voidrender(PoseStack p_112370_, VertexConsumer p_112371_, ModelPart p_112372_, ModelPart p_112373_, ModelPart p_112374_, float p_112375_, int p_112376_, int p_112377_) voidrender(T p_112363_, float p_112364_, PoseStack p_112365_, MultiBufferSource p_112366_, int p_112367_, int p_112368_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderergetViewDistance, shouldRender, shouldRenderOffScreen
- 
Field Details- 
BOTTOM- See Also:
 
- 
LID- See Also:
 
- 
LOCK- See Also:
 
- 
lid
- 
bottom
- 
lock
- 
doubleLeftLid
- 
doubleLeftBottom
- 
doubleLeftLock
- 
doubleRightLid
- 
doubleRightBottom
- 
doubleRightLock
- 
xmasTexturesprivate boolean xmasTextures
 
- 
- 
Constructor Details- 
ChestRenderer
 
- 
- 
Method Details- 
createSingleBodyLayer
- 
createDoubleBodyRightLayer
- 
createDoubleBodyLeftLayer
- 
renderpublic void render(T p_112363_, float p_112364_, PoseStack p_112365_, MultiBufferSource p_112366_, int p_112367_, int p_112368_) - Specified by:
- renderin interface- BlockEntityRenderer<T extends BlockEntity & LidBlockEntity>
 
- 
renderprivate void render(PoseStack p_112370_, VertexConsumer p_112371_, ModelPart p_112372_, ModelPart p_112373_, ModelPart p_112374_, float p_112375_, int p_112376_, int p_112377_) 
- 
getMaterial
- 
getRenderBoundingBoxDescription copied from interface:IBlockEntityRendererExtensionReturn anAABBthat controls the visible scope of thisBlockEntityRenderer. Defaults to the unit cube at the given position.- Specified by:
- getRenderBoundingBoxin interface- IBlockEntityRendererExtension<T extends BlockEntity & LidBlockEntity>
- Returns:
- an appropriately sized AABBfor theBlockEntityRenderer
 
 
-