Class BeaconBlockEntityRenderer
java.lang.Object
net.minecraft.client.render.block.entity.BeaconBlockEntityRenderer
- All Implemented Interfaces:
BlockEntityRenderer<BeaconBlockEntity>
@Environment(CLIENT) public class BeaconBlockEntityRenderer extends Object implements BlockEntityRenderer<BeaconBlockEntity>
-
Field Summary
Fields Modifier and Type Field Description static IdentifierBEAM_TEXTURE -
Constructor Summary
Constructors Constructor Description BeaconBlockEntityRenderer(BlockEntityRendererFactory.Context ctx) -
Method Summary
Modifier and Type Method Description voidrender(BeaconBlockEntity beaconBlockEntity, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2, int int3)private static voidrenderBeam(MatrixStack matrices, VertexConsumerProvider vertexConsumers, float tickDelta, long worldTime, int yOffset, int maxY, float[] color)static voidrenderBeam(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Identifier textureId, float tickDelta, float heightScale, long worldTime, int yOffset, int maxY, float[] color, float innerRadius, float outerRadius)private static voidrenderBeamFace(Matrix4f modelMatrix, Matrix3f normalMatrix, VertexConsumer vertices, float red, float green, float blue, float alpha, int yOffset, int height, float x1, float z1, float x2, float z2, float u1, float u2, float v1, float v2)private static voidrenderBeamLayer(MatrixStack matrices, VertexConsumer vertices, float red, float green, float blue, float alpha, int yOffset, int height, float x1, float z1, float x2, float z2, float x3, float z3, float x4, float z4, float u1, float u2, float v1, float v2)private static voidrenderBeamVertex(Matrix4f modelMatrix, Matrix3f normalMatrix, VertexConsumer vertices, float red, float green, float blue, float alpha, int y, float x, float z, float u, float v)booleanrendersOutsideBoundingBox(BeaconBlockEntity beaconBlockEntity)
-
Field Details
-
BEAM_TEXTURE
-
-
Constructor Details
-
BeaconBlockEntityRenderer
-
-
Method Details
-
render
public void render(BeaconBlockEntity beaconBlockEntity, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2, int int3)- Specified by:
renderin interfaceBlockEntityRenderer<BeaconBlockEntity>
-
renderBeam
private static void renderBeam(MatrixStack matrices, VertexConsumerProvider vertexConsumers, float tickDelta, long worldTime, int yOffset, int maxY, float[] color) -
renderBeam
public static void renderBeam(MatrixStack matrices, VertexConsumerProvider vertexConsumers, Identifier textureId, float tickDelta, float heightScale, long worldTime, int yOffset, int maxY, float[] color, float innerRadius, float outerRadius) -
renderBeamLayer
private static void renderBeamLayer(MatrixStack matrices, VertexConsumer vertices, float red, float green, float blue, float alpha, int yOffset, int height, float x1, float z1, float x2, float z2, float x3, float z3, float x4, float z4, float u1, float u2, float v1, float v2) -
renderBeamFace
private static void renderBeamFace(Matrix4f modelMatrix, Matrix3f normalMatrix, VertexConsumer vertices, float red, float green, float blue, float alpha, int yOffset, int height, float x1, float z1, float x2, float z2, float u1, float u2, float v1, float v2) -
renderBeamVertex
private static void renderBeamVertex(Matrix4f modelMatrix, Matrix3f normalMatrix, VertexConsumer vertices, float red, float green, float blue, float alpha, int y, float x, float z, float u, float v)- Parameters:
u- the left-most coordinate of the texture regionv- the top-most coordinate of the texture region
-
rendersOutsideBoundingBox
- Specified by:
rendersOutsideBoundingBoxin interfaceBlockEntityRenderer<BeaconBlockEntity>
-