Record Class GeneralSectionSpigot.Result

java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.GeneralSectionSpigot.Result
Record Components:
materialBlacklist - The list of materials that are blacklisted and cannot be animated.
resourcePackEnabled - Whether the resource pack should be enabled.
commandAliases - The list of command aliases for the plugin commands.
primaryCommandName - The primary command name (first alias).
All Implemented Interfaces:
IConfigSectionResult
Enclosing class:
GeneralSectionSpigot

public static record GeneralSectionSpigot.Result(Set<org.bukkit.Material> materialBlacklist, boolean resourcePackEnabled, List<String> commandAliases, String primaryCommandName) extends Record implements IConfigSectionResult
Represents the result of the General section configuration.
  • Field Details

  • Constructor Details

    • Result

      public Result(Set<org.bukkit.Material> materialBlacklist, boolean resourcePackEnabled, List<String> commandAliases, String primaryCommandName)
      Creates an instance of a Result record class.
      Parameters:
      materialBlacklist - the value for the materialBlacklist record component
      resourcePackEnabled - the value for the resourcePackEnabled record component
      commandAliases - the value for the commandAliases record component
      primaryCommandName - the value for the primaryCommandName 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. 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.
    • materialBlacklist

      public Set<org.bukkit.Material> materialBlacklist()
      Returns the value of the materialBlacklist record component.
      Returns:
      the value of the materialBlacklist record component
    • resourcePackEnabled

      public boolean resourcePackEnabled()
      Returns the value of the resourcePackEnabled record component.
      Returns:
      the value of the resourcePackEnabled record component
    • commandAliases

      public List<String> commandAliases()
      Returns the value of the commandAliases record component.
      Returns:
      the value of the commandAliases record component
    • primaryCommandName

      public String primaryCommandName()
      Returns the value of the primaryCommandName record component.
      Returns:
      the value of the primaryCommandName record component