Interface FlatLit

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

public interface FlatLit extends Instance
An interface that implementors of Instance should also implement if they wish to make use of relight(int, dev.engine_room.flywheel.lib.instance.FlatLit...) and the relighting utilities in AbstractBlockEntityVisual and AbstractEntityVisual.
  • Method Summary

    Modifier and Type
    Method
    Description
    light(int packedLight)
    Set the packed light value for this instance.
    default FlatLit
    light(int blockLight, int skyLight)
    Set the block and sky light values for this instance.
    static void
    relight(int packedLight, @Nullable FlatLit... instances)
     
    static void
    relight(int packedLight, Iterable<@Nullable FlatLit> instances)
     
    static void
    relight(int packedLight, Iterator<@Nullable FlatLit> instances)
     
    static void
    relight(int packedLight, Stream<@Nullable FlatLit> instances)
     

    Methods inherited from interface dev.engine_room.flywheel.api.instance.Instance

    delete, handle, setChanged, setVisible, type
  • Method Details

    • light

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

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

      static void relight(int packedLight, @Nullable @Nullable FlatLit... instances)
    • relight

      static void relight(int packedLight, Iterator<@Nullable FlatLit> instances)
    • relight

      static void relight(int packedLight, Iterable<@Nullable FlatLit> instances)
    • relight

      static void relight(int packedLight, Stream<@Nullable FlatLit> instances)