Class ColoredLitInstance

java.lang.Object
com.jozufozu.flywheel.lib.instance.AbstractInstance
com.jozufozu.flywheel.lib.instance.ColoredLitInstance
All Implemented Interfaces:
Instance, FlatLit
Direct Known Subclasses:
OrientedInstance, TransformedInstance

public abstract class ColoredLitInstance extends AbstractInstance implements FlatLit
  • Field Details

    • r

      public byte r
    • g

      public byte g
    • b

      public byte b
    • a

      public byte a
    • packedLight

      public int packedLight
    • overlay

      public int overlay
  • Constructor Details

  • Method Details

    • setColor

      public ColoredLitInstance setColor(int color)
    • setColor

      public ColoredLitInstance setColor(int color, boolean alpha)
    • setColor

      public ColoredLitInstance setColor(int r, int g, int b)
    • setColor

      public ColoredLitInstance setColor(byte r, byte g, byte b)
    • setColor

      public ColoredLitInstance setColor(byte r, byte g, byte b, byte a)
    • light

      public ColoredLitInstance light(int blockLight, int skyLight)
      Description copied from interface: FlatLit
      Set the block and sky light values for this instance.
      Specified by:
      light in interface FlatLit
      Parameters:
      blockLight - Block light value
      skyLight - Sky light value
      Returns:
      this for chaining
    • light

      public ColoredLitInstance light(int packedLight)
      Description copied from interface: FlatLit
      Set the packed light value for this instance.
      Specified by:
      light in interface FlatLit
      Parameters:
      packedLight - Packed block and sky light per LightTexture.pack(int, int)
      Returns:
      this for chaining
    • setOverlay

      public ColoredLitInstance setOverlay(int overlay)