Class ConduitRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.ConduitRenderer
- All Implemented Interfaces:
BlockEntityRenderer<ConduitBlockEntity>,IBlockEntityRendererExtension<ConduitBlockEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Materialprivate final ModelPartstatic final Materialprivate final ModelPartstatic final Materialprivate final BlockEntityRenderDispatcherprivate final ModelPartstatic final Materialstatic final Materialprivate final ModelPartstatic final Material -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LayerDefinitionstatic LayerDefinitionstatic LayerDefinitionstatic LayerDefinitiongetRenderBoundingBox(ConduitBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.voidrender(ConduitBlockEntity 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, waitMethods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderer
getViewDistance, shouldRender, shouldRenderOffScreen
-
Field Details
-
SHELL_TEXTURE
-
ACTIVE_SHELL_TEXTURE
-
WIND_TEXTURE
-
VERTICAL_WIND_TEXTURE
-
OPEN_EYE_TEXTURE
-
CLOSED_EYE_TEXTURE
-
eye
-
wind
-
shell
-
cage
-
renderer
-
-
Constructor Details
-
ConduitRenderer
-
-
Method Details
-
createEyeLayer
-
createWindLayer
-
createShellLayer
-
createCageLayer
-
render
public void render(ConduitBlockEntity pBlockEntity, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBufferSource, int pPackedLight, int pPackedOverlay) - Specified by:
renderin interfaceBlockEntityRenderer<ConduitBlockEntity>
-
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
-