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 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 boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitionstatic LayerDefinitionprotected MaterialgetMaterial(T blockEntity, ChestType chestType) getRenderBoundingBox(T blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private voidrender(PoseStack pPoseStack, VertexConsumer pConsumer, ModelPart pLidPart, ModelPart pLockPart, ModelPart pBottomPart, float pLidAngle, int pPackedLight, int pPackedOverlay) voidrender(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) Methods 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
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
BOTTOM
- See Also:
-
LID
- See Also:
-
LOCK
- See Also:
-
lid
-
bottom
-
lock
-
doubleLeftLid
-
doubleLeftBottom
-
doubleLeftLock
-
doubleRightLid
-
doubleRightBottom
-
doubleRightLock
-
xmasTextures
private boolean xmasTextures
-
-
Constructor Details
-
ChestRenderer
-
-
Method Details
-
createSingleBodyLayer
-
createDoubleBodyRightLayer
-
createDoubleBodyLeftLayer
-
render
public void render(T pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) - Specified by:
renderin interfaceBlockEntityRenderer<T extends BlockEntity & LidBlockEntity>
-
render
private void render(PoseStack pPoseStack, VertexConsumer pConsumer, ModelPart pLidPart, ModelPart pLockPart, ModelPart pBottomPart, float pLidAngle, int pPackedLight, int pPackedOverlay) -
getMaterial
-
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 & LidBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-