Module net.minestom.server
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(net.kyori.adventure.key.Key wild, net.kyori.adventure.key.Key tame, net.kyori.adventure.key.Key angry)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAssets
(net.kyori.adventure.key.Key wild, net.kyori.adventure.key.Key tame, net.kyori.adventure.key.Key angry) Creates an instance of aAssets
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.key.Key
angry()
Returns the value of theangry
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.net.kyori.adventure.key.Key
tame()
Returns the value of thetame
record component.final String
toString()
Returns a string representation of this record class.net.kyori.adventure.key.Key
wild()
Returns the value of thewild
record component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Assets
public Assets(net.kyori.adventure.key.Key wild, net.kyori.adventure.key.Key tame, net.kyori.adventure.key.Key angry) Creates an instance of aAssets
record class.- Parameters:
wild
- the value for thewild
record componenttame
- the value for thetame
record componentangry
- the value for theangry
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
wild
public net.kyori.adventure.key.Key wild()Returns the value of thewild
record component.- Returns:
- the value of the
wild
record component
-
tame
public net.kyori.adventure.key.Key tame()Returns the value of thetame
record component.- Returns:
- the value of the
tame
record component
-
angry
public net.kyori.adventure.key.Key angry()Returns the value of theangry
record component.- Returns:
- the value of the
angry
record component
-