Class EnchantTableRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.EnchantTableRenderer
- All Implemented Interfaces:
BlockEntityRenderer<EnchantingTableBlockEntity>
,IBlockEntityRendererExtension<EnchantingTableBlockEntity>
public class EnchantTableRenderer
extends Object
implements BlockEntityRenderer<EnchantingTableBlockEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox
(EnchantingTableBlockEntity blockEntity) Return anAABB
that controls the visible scope of thisBlockEntityRenderer
.void
render
(EnchantingTableBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
BOOK_LOCATION
The texture for the book above the enchantment table. -
bookModel
-
-
Constructor Details
-
EnchantTableRenderer
-
-
Method Details
-
render
public void render(EnchantingTableBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) - Specified by:
render
in interfaceBlockEntityRenderer<EnchantingTableBlockEntity>
-
getRenderBoundingBox
Description copied from interface:IBlockEntityRendererExtension
Return anAABB
that controls the visible scope of thisBlockEntityRenderer
. Defaults to the unit cube at the given position.AABB.INFINITE
can be used to declare the BER should be visible everywhere.- Specified by:
getRenderBoundingBox
in interfaceIBlockEntityRendererExtension<EnchantingTableBlockEntity>
- Returns:
- an appropriately sized
AABB
for theBlockEntityRenderer
-