Class ConduitRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.ConduitRenderer
- All Implemented Interfaces:
BlockEntityRenderer<ConduitBlockEntity, CondiutRenderState>, IBlockEntityRendererExtension<ConduitBlockEntity>
public class ConduitRenderer
extends Object
implements BlockEntityRenderer<ConduitBlockEntity, CondiutRenderState>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpriteIdprivate final ModelPartstatic final SpriteIdprivate final ModelPartstatic final SpriteMapperstatic final SpriteIdprivate final ModelPartstatic final SpriteIdprivate final SpriteGetterstatic final SpriteIdprivate final ModelPartstatic final SpriteId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitionstatic LayerDefinitionstatic LayerDefinitionvoidextractRenderState(ConduitBlockEntity blockEntity, CondiutRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) getRenderBoundingBox(ConduitBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidsubmit(CondiutRenderState 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
-
MAPPER
-
SHELL_TEXTURE
-
ACTIVE_SHELL_TEXTURE
-
WIND_TEXTURE
-
VERTICAL_WIND_TEXTURE
-
OPEN_EYE_TEXTURE
-
CLOSED_EYE_TEXTURE
-
sprites
-
eye
-
wind
-
shell
-
cage
-
-
Constructor Details
-
ConduitRenderer
-
-
Method Details
-
createEyeLayer
-
createWindLayer
-
createShellLayer
-
createCageLayer
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<ConduitBlockEntity, CondiutRenderState>
-
extractRenderState
public void extractRenderState(ConduitBlockEntity blockEntity, CondiutRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<ConduitBlockEntity, CondiutRenderState>
-
submit
public void submit(CondiutRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera) - Specified by:
submitin interfaceBlockEntityRenderer<ConduitBlockEntity, CondiutRenderState>
-
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<ConduitBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-