Class LightUtil

java.lang.Object
net.minecraftforge.client.model.pipeline.LightUtil

public class LightUtil extends Object
  • Field Details

  • Constructor Details

    • LightUtil

      public LightUtil()
  • Method Details

    • diffuseLight

      public static float diffuseLight(float x, float y, float z)
    • diffuseLight

      public static float diffuseLight(Direction side)
    • toSide

      public static Direction toSide(float x, float y, float z)
    • putBakedQuad

      public static void putBakedQuad(IVertexConsumer consumer, BakedQuad quad)
    • mapFormats

      public static int[] mapFormats(VertexFormat from, VertexFormat to)
    • generateMapping

      private static int[] generateMapping(VertexFormat from, VertexFormat to)
    • unpack

      public static void unpack(int[] from, float[] to, VertexFormat formatFrom, int v, int e)
    • pack

      public static void pack(float[] from, int[] to, VertexFormat formatTo, int v, int e)
    • getLightOffset

      public static int getLightOffset(int v)
    • setLightData

      public static void setLightData(BakedQuad q, int light)