Class PistonHeadRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.PistonHeadRenderer
- All Implemented Interfaces:
BlockEntityRenderer<PistonMovingBlockEntity, PistonHeadRenderState>, IBlockEntityRendererExtension<PistonMovingBlockEntity>
public class PistonHeadRenderer
extends Object
implements BlockEntityRenderer<PistonMovingBlockEntity, PistonHeadRenderState>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MovingBlockRenderStatecreateMovingBlock(BlockPos pos, BlockState blockState, Holder<Biome> biome, ClientLevel level) voidextractRenderState(PistonMovingBlockEntity blockEntity, PistonHeadRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) getRenderBoundingBox(PistonMovingBlockEntity blockEntity) Neo: Returns the render bounding box of this BER for frustum culling.intvoidsubmit(PistonHeadRenderState 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
shouldRender, shouldRenderOffScreen
-
Constructor Details
-
PistonHeadRenderer
public PistonHeadRenderer()
-
-
Method Details
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<PistonMovingBlockEntity, PistonHeadRenderState>
-
extractRenderState
public void extractRenderState(PistonMovingBlockEntity blockEntity, PistonHeadRenderState state, float partialTicks, Vec3 cameraPosition, @Nullable ModelFeatureRenderer.CrumblingOverlay breakProgress) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<PistonMovingBlockEntity, PistonHeadRenderState>
-
submit
public void submit(PistonHeadRenderState state, PoseStack poseStack, SubmitNodeCollector submitNodeCollector, CameraRenderState camera) - Specified by:
submitin interfaceBlockEntityRenderer<PistonMovingBlockEntity, PistonHeadRenderState>
-
createMovingBlock
private static MovingBlockRenderState createMovingBlock(BlockPos pos, BlockState blockState, Holder<Biome> biome, ClientLevel level) -
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceBlockEntityRenderer<PistonMovingBlockEntity, PistonHeadRenderState>
-
getRenderBoundingBox
Neo: Returns the render bounding box of this BER for frustum culling.- Specified by:
getRenderBoundingBoxin interfaceIBlockEntityRendererExtension<PistonMovingBlockEntity>- Returns:
- the render bounding box of this BER for frustum culling
-