Class BedRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.BedRenderer
- All Implemented Interfaces:
BlockEntityRenderer<BedBlockEntity>,IBlockEntityRendererExtension<BedBlockEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitionvoidgetExtents(Set<Vector3f> output) private static voidpreparePose(PoseStack poseStack, boolean isFeet, Direction direction) voidrender(BedBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) voidrenderInHand(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Material material) private voidrenderPiece(PoseStack poseStack, MultiBufferSource bufferSource, Model model, Direction direction, Material material, int packedLight, int packedOverlay, boolean isFeet) 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, shouldRenderOffScreenMethods inherited from interface net.neoforged.neoforge.client.extensions.IBlockEntityRendererExtension
getRenderBoundingBox
-
Field Details
-
headModel
-
footModel
-
-
Constructor Details
-
BedRenderer
-
BedRenderer
-
-
Method Details
-
createHeadLayer
-
createFootLayer
-
render
public void render(BedBlockEntity blockEntity, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Vec3 cameraPos) - Specified by:
renderin interfaceBlockEntityRenderer<BedBlockEntity>
-
renderInHand
public void renderInHand(PoseStack poseStack, MultiBufferSource bufferSource, int packedLight, int packedOverlay, Material material) -
renderPiece
private void renderPiece(PoseStack poseStack, MultiBufferSource bufferSource, Model model, Direction direction, Material material, int packedLight, int packedOverlay, boolean isFeet) -
preparePose
-
getExtents
-