java.lang.Object
dev.kosmx.playerAnim.core.data.opennbs.format.Layer

public class Layer extends Object
  • Field Details

    • name

      public String name
      The name of the layer.
    • lock

      public byte lock
      Whether or not this layer has been marked as locked. 1 = locked.
    • volume

      public byte volume
      The volume of the layer (percentage). Ranges from 0-100.
    • stereo

      public byte stereo
      How much this layer is panned to the left/right. 0 is 2 blocks right, 100 is center, 200 is 2 blocks left.
    • notes

      public final ArrayList<Layer.Note> notes
  • Constructor Details

    • Layer

      public Layer()
  • Method Details

    • getLock

      public boolean getLock()
    • setLock

      public void setLock(boolean newValue)
    • findAtTick

      public int findAtTick(int tick)
      search the position of the last keyframe INTERNAL
      Parameters:
      tick - when
      Returns:
      pos in the array
    • addNote

      @Nullable public @Nullable Layer.Note addNote(int tick)
    • getNotesFrom

      public ArrayList<Layer.Note> getNotesFrom(int fromTick, int toTick)
    • getNotesFrom

      public ArrayList<Layer.Note> getNotesFrom(int toTick)