java.lang.Object
net.minecraftforge.common.animation.Event
All Implemented Interfaces:
Comparable<Event>

public final class Event extends Object implements Comparable<Event>
Event stored in the clip
  • Field Details

    • event

      private final String event
    • offset

      private final float offset
  • Constructor Details

    • Event

      public Event(String event, float offset)
  • Method Details

    • event

      public String event()
      Returns:
      the name of the event.
    • offset

      public float offset()
      Returns:
      how long ago the event happened, relative to the next event / first query time
    • compareTo

      public int compareTo(Event event)
      Specified by:
      compareTo in interface Comparable<Event>
    • toString

      public String toString()
      Overrides:
      toString in class Object