Class BeaconRenderer
java.lang.Object
net.minecraft.client.renderer.blockentity.BeaconRenderer
- All Implemented Interfaces:
BlockEntityRenderer<BeaconBlockEntity>,IBlockEntityRendererExtension<BeaconBlockEntity>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddVertex(PoseStack.Pose pPose, VertexConsumer pConsumer, int pColor, int pY, float pX, float pZ, float pU, float pV) getRenderBoundingBox(BeaconBlockEntity blockEntity) Return anAABBthat controls the visible scope of thisBlockEntityRenderer.intvoidrender(BeaconBlockEntity p_112140_, float p_112141_, PoseStack p_112142_, MultiBufferSource p_112143_, int p_112144_, int p_112145_) private static voidrenderBeaconBeam(PoseStack pPoseStack, MultiBufferSource pBufferSource, float pPartialTick, long pGameTime, int pYOffset, int pHeight, int pColor) static voidrenderBeaconBeam(PoseStack pPoseStack, MultiBufferSource pBufferSource, ResourceLocation pBeamLocation, float pPartialTick, float pTextureScale, long pGameTime, int pYOffset, int pHeight, int pColor, float pBeamRadius, float pGlowRadius) private static voidrenderPart(PoseStack pPoseStack, VertexConsumer pConsumer, int pColor, int pMinY, int pMaxY, float pX1, float pZ1, float pX2, float pZ2, float pX3, float pZ3, float pX4, float pZ4, float pMinU, float pMaxU, float pMinV, float pMaxV) private static voidrenderQuad(PoseStack.Pose pPose, VertexConsumer pConsumer, int pColor, int pMinY, int pMaxY, float pMinX, float pMinZ, float pMaxX, float pMaxZ, float pMinU, float pMaxU, float pMinV, float pMaxV) booleanshouldRender(BeaconBlockEntity p_173531_, Vec3 p_173532_) booleanshouldRenderOffScreen(BeaconBlockEntity p_112138_)
-
Field Details
-
BEAM_LOCATION
-
MAX_RENDER_Y
public static final int MAX_RENDER_Y- See Also:
-
-
Constructor Details
-
BeaconRenderer
-
-
Method Details
-
render
public void render(BeaconBlockEntity p_112140_, float p_112141_, PoseStack p_112142_, MultiBufferSource p_112143_, int p_112144_, int p_112145_) - Specified by:
renderin interfaceBlockEntityRenderer<BeaconBlockEntity>
-
renderBeaconBeam
private static void renderBeaconBeam(PoseStack pPoseStack, MultiBufferSource pBufferSource, float pPartialTick, long pGameTime, int pYOffset, int pHeight, int pColor) -
renderBeaconBeam
public static void renderBeaconBeam(PoseStack pPoseStack, MultiBufferSource pBufferSource, ResourceLocation pBeamLocation, float pPartialTick, float pTextureScale, long pGameTime, int pYOffset, int pHeight, int pColor, float pBeamRadius, float pGlowRadius) -
renderPart
private static void renderPart(PoseStack pPoseStack, VertexConsumer pConsumer, int pColor, int pMinY, int pMaxY, float pX1, float pZ1, float pX2, float pZ2, float pX3, float pZ3, float pX4, float pZ4, float pMinU, float pMaxU, float pMinV, float pMaxV) -
renderQuad
private static void renderQuad(PoseStack.Pose pPose, VertexConsumer pConsumer, int pColor, int pMinY, int pMaxY, float pMinX, float pMinZ, float pMaxX, float pMaxZ, float pMinU, float pMaxU, float pMinV, float pMaxV) -
addVertex
private static void addVertex(PoseStack.Pose pPose, VertexConsumer pConsumer, int pColor, int pY, float pX, float pZ, float pU, float pV) -
shouldRenderOffScreen
- Specified by:
shouldRenderOffScreenin interfaceBlockEntityRenderer<BeaconBlockEntity>
-
getViewDistance
public int getViewDistance()- Specified by:
getViewDistancein interfaceBlockEntityRenderer<BeaconBlockEntity>
-
shouldRender
- Specified by:
shouldRenderin interfaceBlockEntityRenderer<BeaconBlockEntity>
-
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<BeaconBlockEntity>- Returns:
- an appropriately sized
AABBfor theBlockEntityRenderer
-