Record Class CachedEventTag

java.lang.Object
java.lang.Record
dev.gothickit.zenkit.mds.CachedEventTag
All Implemented Interfaces:
CacheableObject<CachedEventTag>, EventTag

public record CachedEventTag(int frame, @NotNull EventType type, @NotNull String item, @NotNull List<String> slots, int @NotNull [] frames, @NotNull FightMode fightMode, boolean isAttached) extends Record implements EventTag
  • Constructor Summary

    Constructors
    Constructor
    Description
    CachedEventTag(int frame, @NotNull EventType type, @NotNull String item, @NotNull List<String> slots, int @NotNull [] frames, @NotNull FightMode fightMode, boolean isAttached)
    Creates an instance of a CachedEventTag record class.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull FightMode
    Returns the value of the fightMode record component.
    int
    Returns the value of the frame record component.
    int @NotNull []
    Returns the value of the frames record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isAttached record component.
    boolean
     
    @NotNull String
    Returns the value of the item record component.
    @Nullable String
    slot(long i)
     
    @NotNull List<String>
    Returns the value of the slots record component.
    final String
    Returns a string representation of this record class.
    @NotNull EventType
    Returns the value of the type record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CachedEventTag

      public CachedEventTag(int frame, @NotNull @NotNull EventType type, @NotNull @NotNull String item, @NotNull @NotNull List<String> slots, int @NotNull [] frames, @NotNull @NotNull FightMode fightMode, boolean isAttached)
      Creates an instance of a CachedEventTag record class.
      Parameters:
      frame - the value for the frame record component
      type - the value for the type record component
      item - the value for the item record component
      slots - the value for the slots record component
      frames - the value for the frames record component
      fightMode - the value for the fightMode record component
      isAttached - the value for the isAttached record component
  • Method Details

    • slot

      @Nullable public @Nullable String slot(long i)
      Specified by:
      slot in interface EventTag
    • cache

      @NotNull public @NotNull CachedEventTag cache()
      Specified by:
      cache in interface CacheableObject<CachedEventTag>
    • isCached

      public boolean isCached()
      Specified by:
      isCached in interface CacheableObject<CachedEventTag>
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • frame

      public int frame()
      Returns the value of the frame record component.
      Specified by:
      frame in interface EventTag
      Returns:
      the value of the frame record component
    • type

      @NotNull public @NotNull EventType type()
      Returns the value of the type record component.
      Specified by:
      type in interface EventTag
      Returns:
      the value of the type record component
    • item

      @NotNull public @NotNull String item()
      Returns the value of the item record component.
      Specified by:
      item in interface EventTag
      Returns:
      the value of the item record component
    • slots

      @NotNull public @NotNull List<String> slots()
      Returns the value of the slots record component.
      Specified by:
      slots in interface EventTag
      Returns:
      the value of the slots record component
    • frames

      public int @NotNull [] frames()
      Returns the value of the frames record component.
      Specified by:
      frames in interface EventTag
      Returns:
      the value of the frames record component
    • fightMode

      @NotNull public @NotNull FightMode fightMode()
      Returns the value of the fightMode record component.
      Specified by:
      fightMode in interface EventTag
      Returns:
      the value of the fightMode record component
    • isAttached

      public boolean isAttached()
      Returns the value of the isAttached record component.
      Specified by:
      isAttached in interface EventTag
      Returns:
      the value of the isAttached record component