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 pPos, BlockState pState, Holder<Biome> pBiome, Level pLevel) voidextractRenderState(PistonMovingBlockEntity p_445667_, PistonHeadRenderState p_445712_, float p_446910_, Vec3 p_445923_, ModelFeatureRenderer.CrumblingOverlay p_446317_) getRenderBoundingBox(PistonMovingBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.intvoidsubmit(PistonHeadRenderState p_445405_, PoseStack p_439297_, SubmitNodeCollector p_440309_, CameraRenderState p_450916_) 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
shouldRender, shouldRenderOffScreen
-
Constructor Details
-
PistonHeadRenderer
public PistonHeadRenderer()
-
-
Method Details
-
createRenderState
- Specified by:
createRenderStatein interfaceBlockEntityRenderer<PistonMovingBlockEntity,PistonHeadRenderState>
-
extractRenderState
public void extractRenderState(PistonMovingBlockEntity p_445667_, PistonHeadRenderState p_445712_, float p_446910_, Vec3 p_445923_, @Nullable ModelFeatureRenderer.CrumblingOverlay p_446317_) - Specified by:
extractRenderStatein interfaceBlockEntityRenderer<PistonMovingBlockEntity,PistonHeadRenderState>
-
submit
public void submit(PistonHeadRenderState p_445405_, PoseStack p_439297_, SubmitNodeCollector p_440309_, CameraRenderState p_450916_) - Specified by:
submitin interfaceBlockEntityRenderer<PistonMovingBlockEntity,PistonHeadRenderState>
-
createMovingBlock
private static MovingBlockRenderState createMovingBlock(BlockPos pPos, BlockState pState, Holder<Biome> pBiome, Level pLevel) -
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceBlockEntityRenderer<PistonMovingBlockEntity,PistonHeadRenderState>
-
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<PistonMovingBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-