Record Class LabyModEmoteConfiguration

java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.LabyModEmoteConfiguration

public record LabyModEmoteConfiguration(int[] emoteIds, int[] onJoinEmoteIds, int[] onKnockbackEmoteIds, long minEmoteDelayTicks, long maxEmoteDelayTicks, boolean syncEmotesBetweenNPCs) extends Record
  • Field Details

    • emoteIds

      private final int[] emoteIds
      The field for the emoteIds record component.
    • onJoinEmoteIds

      private final int[] onJoinEmoteIds
      The field for the onJoinEmoteIds record component.
    • onKnockbackEmoteIds

      private final int[] onKnockbackEmoteIds
      The field for the onKnockbackEmoteIds record component.
    • minEmoteDelayTicks

      private final long minEmoteDelayTicks
      The field for the minEmoteDelayTicks record component.
    • maxEmoteDelayTicks

      private final long maxEmoteDelayTicks
      The field for the maxEmoteDelayTicks record component.
    • syncEmotesBetweenNPCs

      private final boolean syncEmotesBetweenNPCs
      The field for the syncEmotesBetweenNPCs record component.
  • Constructor Details

    • LabyModEmoteConfiguration

      public LabyModEmoteConfiguration(int[] emoteIds, int[] onJoinEmoteIds, int[] onKnockbackEmoteIds, long minEmoteDelayTicks, long maxEmoteDelayTicks, boolean syncEmotesBetweenNPCs)
      Creates an instance of a LabyModEmoteConfiguration record class.
      Parameters:
      emoteIds - the value for the emoteIds record component
      onJoinEmoteIds - the value for the onJoinEmoteIds record component
      onKnockbackEmoteIds - the value for the onKnockbackEmoteIds record component
      minEmoteDelayTicks - the value for the minEmoteDelayTicks record component
      maxEmoteDelayTicks - the value for the maxEmoteDelayTicks record component
      syncEmotesBetweenNPCs - the value for the syncEmotesBetweenNPCs record component
  • Method Details

    • builder

    • builder

    • 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 the compare method from their corresponding wrapper classes.
      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.
    • emoteIds

      public int[] emoteIds()
      Returns the value of the emoteIds record component.
      Returns:
      the value of the emoteIds record component
    • onJoinEmoteIds

      public int[] onJoinEmoteIds()
      Returns the value of the onJoinEmoteIds record component.
      Returns:
      the value of the onJoinEmoteIds record component
    • onKnockbackEmoteIds

      public int[] onKnockbackEmoteIds()
      Returns the value of the onKnockbackEmoteIds record component.
      Returns:
      the value of the onKnockbackEmoteIds record component
    • minEmoteDelayTicks

      public long minEmoteDelayTicks()
      Returns the value of the minEmoteDelayTicks record component.
      Returns:
      the value of the minEmoteDelayTicks record component
    • maxEmoteDelayTicks

      public long maxEmoteDelayTicks()
      Returns the value of the maxEmoteDelayTicks record component.
      Returns:
      the value of the maxEmoteDelayTicks record component
    • syncEmotesBetweenNPCs

      public boolean syncEmotesBetweenNPCs()
      Returns the value of the syncEmotesBetweenNPCs record component.
      Returns:
      the value of the syncEmotesBetweenNPCs record component