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_, ModelFeatureRenderer.CrumblingOverlay p_446363_) voidgetExtents(Direction direction, float progress, Set<Vector3f> output) getRenderBoundingBox(ShulkerBoxBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.private voidprepareModel(PoseStack poseStack, Direction direction, float progress) voidsubmit(PoseStack poseStack, SubmitNodeCollector nodeCollector, int packedLight, int packedOverlay, Direction direction, float progress, ModelFeatureRenderer.CrumblingOverlay crumblingOverlay, Material material, int outlineColor) 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 poseStack, SubmitNodeCollector nodeCollector, int packedLight, int packedOverlay, Direction direction, float progress, @Nullable ModelFeatureRenderer.CrumblingOverlay crumblingOverlay, Material material, int outlineColor) -
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
-