Record Class ModuleContributions.TagChange

java.lang.Object
java.lang.Record
com.ultikits.ultitools.bootstrap.ModuleContributions.TagChange
Enclosing class:
ModuleContributions

static record ModuleContributions.TagChange(io.papermc.paper.registry.RegistryKey<?> registry, net.kyori.adventure.key.Key tag, List<net.kyori.adventure.key.Key> values, boolean replace) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final io.papermc.paper.registry.RegistryKey<?>
    The field for the registry record component.
    private final boolean
    The field for the replace record component.
    private final net.kyori.adventure.key.Key
    The field for the tag record component.
    private final List<net.kyori.adventure.key.Key>
    The field for the values record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TagChange(io.papermc.paper.registry.RegistryKey<?> registry, net.kyori.adventure.key.Key tag, List<net.kyori.adventure.key.Key> values, boolean replace)
    Creates an instance of a TagChange record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) ContentEntry
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    io.papermc.paper.registry.RegistryKey<?>
    Returns the value of the registry record component.
    boolean
    Returns the value of the replace record component.
    net.kyori.adventure.key.Key
    tag()
    Returns the value of the tag record component.
    final String
    Returns a string representation of this record class.
    List<net.kyori.adventure.key.Key>
    Returns the value of the values record component.

    Methods inherited from class Object

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

    • registry

      private final io.papermc.paper.registry.RegistryKey<?> registry
      The field for the registry record component.
    • tag

      private final net.kyori.adventure.key.Key tag
      The field for the tag record component.
    • values

      private final List<net.kyori.adventure.key.Key> values
      The field for the values record component.
    • replace

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

    • TagChange

      TagChange(io.papermc.paper.registry.RegistryKey<?> registry, net.kyori.adventure.key.Key tag, List<net.kyori.adventure.key.Key> values, boolean replace)
      Creates an instance of a TagChange record class.
      Parameters:
      registry - the value for the registry record component
      tag - the value for the tag record component
      values - the value for the values record component
      replace - the value for the replace record component
  • Method Details

    • entry

      ContentEntry entry()
    • 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.
    • registry

      public io.papermc.paper.registry.RegistryKey<?> registry()
      Returns the value of the registry record component.
      Returns:
      the value of the registry record component
    • tag

      public net.kyori.adventure.key.Key tag()
      Returns the value of the tag record component.
      Returns:
      the value of the tag record component
    • values

      public List<net.kyori.adventure.key.Key> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • replace

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