Class PistonHeadRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.PistonHeadRenderer
- All Implemented Interfaces:
- BlockEntityRenderer<PistonMovingBlockEntity>,- IBlockEntityRendererExtension<PistonMovingBlockEntity>
public class PistonHeadRenderer
extends Object
implements BlockEntityRenderer<PistonMovingBlockEntity>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetRenderBoundingBox(PistonMovingBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.intvoidrender(PistonMovingBlockEntity p_112452_, float p_112453_, PoseStack p_112454_, MultiBufferSource p_112455_, int p_112456_, int p_112457_) private voidrenderBlock(BlockPos p_112459_, BlockState p_112460_, PoseStack p_112461_, MultiBufferSource p_112462_, Level p_112463_, boolean p_112464_, int p_112465_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.renderer.blockentity.BlockEntityRenderershouldRender, shouldRenderOffScreen
- 
Field Details- 
blockRenderer
 
- 
- 
Constructor Details- 
PistonHeadRenderer
 
- 
- 
Method Details- 
renderpublic void render(PistonMovingBlockEntity p_112452_, float p_112453_, PoseStack p_112454_, MultiBufferSource p_112455_, int p_112456_, int p_112457_) - Specified by:
- renderin interface- BlockEntityRenderer<PistonMovingBlockEntity>
 
- 
renderBlockprivate void renderBlock(BlockPos p_112459_, BlockState p_112460_, PoseStack p_112461_, MultiBufferSource p_112462_, Level p_112463_, boolean p_112464_, int p_112465_) 
- 
getViewDistancepublic int getViewDistance()- Specified by:
- getViewDistancein interface- BlockEntityRenderer<PistonMovingBlockEntity>
 
- 
getRenderBoundingBoxDescription 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 interface- IBlockEntityRendererExtension<PistonMovingBlockEntity>
- Returns:
- an appropriately sized AABBfor theBlockEntityRenderer
 
 
-