Class LecternRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.LecternRenderer
- All Implemented Interfaces:
BlockEntityRenderer<LecternBlockEntity>,IBlockEntityRendererExtension<LecternBlockEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox(LecternBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidrender(LecternBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) 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
-
bookModel
-
-
Constructor Details
-
LecternRenderer
-
-
Method Details
-
render
public void render(LecternBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay, Vec3 pCameraPos) - Specified by:
renderin interfaceBlockEntityRenderer<LecternBlockEntity>
-
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<LecternBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-