Class LecternRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.LecternRenderer
- All Implemented Interfaces:
BlockEntityRenderer<LecternBlockEntity, LecternRenderState>, IBlockEntityRendererExtension<LecternBlockEntity>
public class LecternRenderer
extends Object
implements BlockEntityRenderer<LecternBlockEntity, LecternRenderState>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BookModelprivate final BookModel.Stateprivate final SpriteGetter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(LecternBlockEntity blockEntity, LecternRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) getRenderBoundingBox(LecternBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidsubmit(LecternRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
sprites
-
bookModel
-
bookState
-
-
Constructor Details
-
LecternRenderer
-
-
Method Details
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<LecternBlockEntity, LecternRenderState>
-
extractRenderState
public void extractRenderState(LecternBlockEntity blockEntity, LecternRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<LecternBlockEntity, LecternRenderState>
-
submit
public void submit(LecternRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera) - Specified by:
submitin interfaceBlockEntityRenderer<LecternBlockEntity, LecternRenderState>
-
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
-