Record Class PluginSettings.MenuSettings

java.lang.Object
java.lang.Record
dev.despical.particletext.config.PluginSettings.MenuSettings
Enclosing class:
PluginSettings

public static record PluginSettings.MenuSettings(String title, int rows, org.bukkit.Material enabledMaterial, org.bukkit.Material disabledMaterial, org.bukkit.Material previousPageMaterial, org.bukkit.Material nextPageMaterial, org.bukkit.Material emptyMaterial, org.bukkit.Material decorationMaterial, org.bukkit.Sound openSound, org.bukkit.Sound pageChangeSound, org.bukkit.Sound teleportSound, org.bukkit.Sound enabledSound, org.bukkit.Sound disabledSound) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    MenuSettings(String title, int rows, org.bukkit.Material enabledMaterial, org.bukkit.Material disabledMaterial, org.bukkit.Material previousPageMaterial, org.bukkit.Material nextPageMaterial, org.bukkit.Material emptyMaterial, org.bukkit.Material decorationMaterial, org.bukkit.Sound openSound, org.bukkit.Sound pageChangeSound, org.bukkit.Sound teleportSound, org.bukkit.Sound enabledSound, org.bukkit.Sound disabledSound)
    Creates an instance of a MenuSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Material
    Returns the value of the decorationMaterial record component.
    org.bukkit.Material
    Returns the value of the disabledMaterial record component.
    org.bukkit.Sound
    Returns the value of the disabledSound record component.
    org.bukkit.Material
    Returns the value of the emptyMaterial record component.
    org.bukkit.Material
    Returns the value of the enabledMaterial record component.
    org.bukkit.Sound
    Returns the value of the enabledSound record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.bukkit.Material
    Returns the value of the nextPageMaterial record component.
    org.bukkit.Sound
    Returns the value of the openSound record component.
    org.bukkit.Sound
    Returns the value of the pageChangeSound record component.
    org.bukkit.Material
    Returns the value of the previousPageMaterial record component.
    int
    Returns the value of the rows record component.
    org.bukkit.Sound
    Returns the value of the teleportSound record component.
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

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

    • MenuSettings

      public MenuSettings(String title, int rows, org.bukkit.Material enabledMaterial, org.bukkit.Material disabledMaterial, org.bukkit.Material previousPageMaterial, org.bukkit.Material nextPageMaterial, org.bukkit.Material emptyMaterial, org.bukkit.Material decorationMaterial, org.bukkit.Sound openSound, org.bukkit.Sound pageChangeSound, org.bukkit.Sound teleportSound, org.bukkit.Sound enabledSound, org.bukkit.Sound disabledSound)
      Creates an instance of a MenuSettings record class.
      Parameters:
      title - the value for the title record component
      rows - the value for the rows record component
      enabledMaterial - the value for the enabledMaterial record component
      disabledMaterial - the value for the disabledMaterial record component
      previousPageMaterial - the value for the previousPageMaterial record component
      nextPageMaterial - the value for the nextPageMaterial record component
      emptyMaterial - the value for the emptyMaterial record component
      decorationMaterial - the value for the decorationMaterial record component
      openSound - the value for the openSound record component
      pageChangeSound - the value for the pageChangeSound record component
      teleportSound - the value for the teleportSound record component
      enabledSound - the value for the enabledSound record component
      disabledSound - the value for the disabledSound 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.
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • rows

      public int rows()
      Returns the value of the rows record component.
      Returns:
      the value of the rows record component
    • enabledMaterial

      public org.bukkit.Material enabledMaterial()
      Returns the value of the enabledMaterial record component.
      Returns:
      the value of the enabledMaterial record component
    • disabledMaterial

      public org.bukkit.Material disabledMaterial()
      Returns the value of the disabledMaterial record component.
      Returns:
      the value of the disabledMaterial record component
    • previousPageMaterial

      public org.bukkit.Material previousPageMaterial()
      Returns the value of the previousPageMaterial record component.
      Returns:
      the value of the previousPageMaterial record component
    • nextPageMaterial

      public org.bukkit.Material nextPageMaterial()
      Returns the value of the nextPageMaterial record component.
      Returns:
      the value of the nextPageMaterial record component
    • emptyMaterial

      public org.bukkit.Material emptyMaterial()
      Returns the value of the emptyMaterial record component.
      Returns:
      the value of the emptyMaterial record component
    • decorationMaterial

      public org.bukkit.Material decorationMaterial()
      Returns the value of the decorationMaterial record component.
      Returns:
      the value of the decorationMaterial record component
    • openSound

      public org.bukkit.Sound openSound()
      Returns the value of the openSound record component.
      Returns:
      the value of the openSound record component
    • pageChangeSound

      public org.bukkit.Sound pageChangeSound()
      Returns the value of the pageChangeSound record component.
      Returns:
      the value of the pageChangeSound record component
    • teleportSound

      public org.bukkit.Sound teleportSound()
      Returns the value of the teleportSound record component.
      Returns:
      the value of the teleportSound record component
    • enabledSound

      public org.bukkit.Sound enabledSound()
      Returns the value of the enabledSound record component.
      Returns:
      the value of the enabledSound record component
    • disabledSound

      public org.bukkit.Sound disabledSound()
      Returns the value of the disabledSound record component.
      Returns:
      the value of the disabledSound record component