Class ChestRenderer<T extends BlockEntity & LidBlockEntity>
java.lang.Object
net.minecraft.client.renderer.blockentity.ChestRenderer<T>
- All Implemented Interfaces:
BlockEntityRenderer<T,,ChestRenderState> IBlockEntityRendererExtension<T>
public class ChestRenderer<T extends BlockEntity & LidBlockEntity>
extends Object
implements BlockEntityRenderer<T,ChestRenderState>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChestModelprivate final ChestModelprivate final MaterialSetprivate final ChestModelprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(T p_446382_, ChestRenderState p_445744_, float p_446088_, Vec3 p_447190_, ModelFeatureRenderer.CrumblingOverlay p_446187_) getChestMaterial(BlockEntity pBlockEntity, boolean pXmasTextures) protected MaterialgetCustomMaterial(T blockEntity, ChestRenderState renderState) Neo: Return a customMaterialto render the chest with ornullto fall back to the vanilla material selection.getRenderBoundingBox(T blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidsubmit(ChestRenderState p_446740_, PoseStack p_445661_, SubmitNodeCollector p_445570_, CameraRenderState p_451060_) static 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
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
materials
-
singleModel
-
doubleLeftModel
-
doubleRightModel
-
xmasTextures
private final boolean xmasTextures
-
-
Constructor Details
-
ChestRenderer
-
-
Method Details
-
xmasTextures
public static boolean xmasTextures() -
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<T extends BlockEntity & LidBlockEntity,ChestRenderState>
-
extractRenderState
public void extractRenderState(T p_446382_, ChestRenderState p_445744_, float p_446088_, Vec3 p_447190_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446187_) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<T extends BlockEntity & LidBlockEntity,ChestRenderState>
-
submit
public void submit(ChestRenderState p_446740_, PoseStack p_445661_, SubmitNodeCollector p_445570_, CameraRenderState p_451060_) - Specified by:
submitin interfaceBlockEntityRenderer<T extends BlockEntity & LidBlockEntity,ChestRenderState>
-
getChestMaterial
private ChestRenderState.ChestMaterialType getChestMaterial(BlockEntity pBlockEntity, boolean pXmasTextures) -
getCustomMaterial
Neo: Return a customMaterialto render the chest with ornullto fall back to the vanilla material selection. -
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
-