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 MaterialSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(LecternBlockEntity p_447206_, LecternRenderState p_445480_, float p_445502_, Vec3 p_446398_, ModelFeatureRenderer.CrumblingOverlay p_446019_) getRenderBoundingBox(LecternBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidsubmit(LecternRenderState p_445746_, PoseStack p_439985_, SubmitNodeCollector p_439033_, CameraRenderState p_451358_) 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
-
materials
-
bookModel
-
bookState
-
-
Constructor Details
-
LecternRenderer
-
-
Method Details
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<LecternBlockEntity,LecternRenderState>
-
extractRenderState
public void extractRenderState(LecternBlockEntity p_447206_, LecternRenderState p_445480_, float p_445502_, Vec3 p_446398_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446019_) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<LecternBlockEntity,LecternRenderState>
-
submit
public void submit(LecternRenderState p_445746_, PoseStack p_439985_, SubmitNodeCollector p_439033_, CameraRenderState p_451358_) - 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
-