Class ShulkerBoxRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.ShulkerBoxRenderer
- All Implemented Interfaces:
BlockEntityRenderer<ShulkerBoxBlockEntity,,ShulkerBoxRenderState> IBlockEntityRendererExtension<ShulkerBoxBlockEntity>
public class ShulkerBoxRenderer
extends Object
implements BlockEntityRenderer<ShulkerBoxBlockEntity,ShulkerBoxRenderState>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MaterialSetprivate final ShulkerBoxRenderer.ShulkerBoxModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractRenderState(ShulkerBoxBlockEntity p_445428_, ShulkerBoxRenderState p_446695_, float p_446436_, Vec3 p_446068_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446363_) voidgetExtents(Direction pDirection, float pProgress, Consumer<Vector3fc> pOutput) getRenderBoundingBox(ShulkerBoxBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private voidprepareModel(PoseStack pPoseStack, Direction pDirection, float pProgress) voidsubmit(PoseStack pPoseStack, SubmitNodeCollector pNodeCollector, int pPackedLight, int pPackedOverlay, Direction pDirection, float pProgress, @Nullable ModelFeatureRenderer.CrumblingOverlay pCrumblingOverlay, Material pMaterial, int pOutlineColor) voidsubmit(ShulkerBoxRenderState p_446892_, PoseStack p_439668_, SubmitNodeCollector p_440606_, CameraRenderState p_451427_) 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
-
model
-
-
Constructor Details
-
ShulkerBoxRenderer
-
ShulkerBoxRenderer
-
ShulkerBoxRenderer
-
-
Method Details
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<ShulkerBoxBlockEntity,ShulkerBoxRenderState>
-
extractRenderState
public void extractRenderState(ShulkerBoxBlockEntity p_445428_, ShulkerBoxRenderState p_446695_, float p_446436_, Vec3 p_446068_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446363_) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<ShulkerBoxBlockEntity,ShulkerBoxRenderState>
-
submit
public void submit(ShulkerBoxRenderState p_446892_, PoseStack p_439668_, SubmitNodeCollector p_440606_, CameraRenderState p_451427_) - Specified by:
submitin interfaceBlockEntityRenderer<ShulkerBoxBlockEntity,ShulkerBoxRenderState>
-
submit
public void submit(PoseStack pPoseStack, SubmitNodeCollector pNodeCollector, int pPackedLight, int pPackedOverlay, Direction pDirection, float pProgress, @Nullable ModelFeatureRenderer.CrumblingOverlay pCrumblingOverlay, Material pMaterial, int pOutlineColor) -
prepareModel
-
getExtents
-
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<ShulkerBoxBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-