Record Class WolfVariant.Assets

java.lang.Object
java.lang.Record
net.minestom.server.entity.metadata.animal.tameable.WolfVariant.Assets
Enclosing interface:
WolfVariant

public static record WolfVariant.Assets(@NotNull net.kyori.adventure.key.Key wild, @NotNull net.kyori.adventure.key.Key tame, @NotNull net.kyori.adventure.key.Key angry) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Assets(@NotNull net.kyori.adventure.key.Key wild, @NotNull net.kyori.adventure.key.Key tame, @NotNull net.kyori.adventure.key.Key angry)
    Creates an instance of a Assets record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.key.Key
    Returns the value of the angry record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull net.kyori.adventure.key.Key
    Returns the value of the tame record component.
    final String
    Returns a string representation of this record class.
    @NotNull net.kyori.adventure.key.Key
    Returns the value of the wild record component.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Assets

      public Assets(@NotNull @NotNull net.kyori.adventure.key.Key wild, @NotNull @NotNull net.kyori.adventure.key.Key tame, @NotNull @NotNull net.kyori.adventure.key.Key angry)
      Creates an instance of a Assets record class.
      Parameters:
      wild - the value for the wild record component
      tame - the value for the tame record component
      angry - the value for the angry 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 Objects::equals(Object,Object).
      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.
    • wild

      @NotNull public @NotNull net.kyori.adventure.key.Key wild()
      Returns the value of the wild record component.
      Returns:
      the value of the wild record component
    • tame

      @NotNull public @NotNull net.kyori.adventure.key.Key tame()
      Returns the value of the tame record component.
      Returns:
      the value of the tame record component
    • angry

      @NotNull public @NotNull net.kyori.adventure.key.Key angry()
      Returns the value of the angry record component.
      Returns:
      the value of the angry record component