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 Details

    • BEAM_TEXTURE

      public static final Identifier BEAM_TEXTURE
  • Constructor Details

  • Method Details

    • render

      public void render​(BeaconBlockEntity beaconBlockEntity, float float2, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2, int int3)
      Specified by:
      render in interface BlockEntityRenderer<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 region
      v - the top-most coordinate of the texture region
    • rendersOutsideBoundingBox

      public boolean rendersOutsideBoundingBox​(BeaconBlockEntity beaconBlockEntity)
      Specified by:
      rendersOutsideBoundingBox in interface BlockEntityRenderer<BeaconBlockEntity>