Record Class AnimationsSectionSpigot.Result

java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.AnimationsSectionSpigot.Result
Record Components:
loadChunksForToggle - Whether to load chunks when toggling a structure.
skipAnimationsByDefault - Whether to skip animations by default.

This can be overridden by StructureAnimationRequestBuilder.IBuilder.skipAnimation(boolean).

All Implemented Interfaces:
IConfigSectionResult
Enclosing class:
AnimationsSectionSpigot

public static record AnimationsSectionSpigot.Result(boolean loadChunksForToggle, boolean skipAnimationsByDefault) extends Record implements IConfigSectionResult
Represents the result of this section after it was parsed.
  • Field Details

  • Constructor Details

    • Result

      public Result(boolean loadChunksForToggle, boolean skipAnimationsByDefault)
      Creates an instance of a Result record class.
      Parameters:
      loadChunksForToggle - the value for the loadChunksForToggle record component
      skipAnimationsByDefault - the value for the skipAnimationsByDefault record component
  • Method Details

    • 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. All components in this record class 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.
    • loadChunksForToggle

      public boolean loadChunksForToggle()
      Returns the value of the loadChunksForToggle record component.
      Returns:
      the value of the loadChunksForToggle record component
    • skipAnimationsByDefault

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