Interface FlatLit

All Superinterfaces:
Instance
All Known Implementing Classes:
ColoredLitInstance, OrientedInstance, TransformedInstance

public interface FlatLit extends Instance
An interface that implementors of Instance should also implement if they wish to make use of the relighting utilities in AbstractVisual.
  • Method Summary

    Modifier and Type
    Method
    Description
    light(int packedLight)
    Set the packed light value for this instance.
    light(int blockLight, int skyLight)
    Set the block and sky light values for this instance.

    Methods inherited from interface com.jozufozu.flywheel.api.instance.Instance

    delete, handle, setChanged, type
  • Method Details

    • light

      FlatLit light(int blockLight, int skyLight)
      Set the block and sky light values for this instance.
      Parameters:
      blockLight - Block light value
      skyLight - Sky light value
      Returns:
      this for chaining
    • light

      FlatLit light(int packedLight)
      Set the packed light value for this instance.
      Parameters:
      packedLight - Packed block and sky light per LightTexture.pack(int, int)
      Returns:
      this for chaining