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 -
Constructor Summary
ConstructorsConstructorDescriptionAssets(@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 aAssetsrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.key.Keyangry()Returns the value of theangryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull net.kyori.adventure.key.Keytame()Returns the value of thetamerecord component.final StringtoString()Returns a string representation of this record class.@NotNull net.kyori.adventure.key.Keywild()Returns the value of thewildrecord component.
-
Field Details
-
CODEC
-
-
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 aAssetsrecord class.- Parameters:
wild- the value for thewildrecord componenttame- the value for thetamerecord componentangry- the value for theangryrecord 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
@NotNull public @NotNull net.kyori.adventure.key.Key wild()Returns the value of thewildrecord component.- Returns:
- the value of the
wildrecord component
-
tame
@NotNull public @NotNull net.kyori.adventure.key.Key tame()Returns the value of thetamerecord component.- Returns:
- the value of the
tamerecord component
-
angry
@NotNull public @NotNull net.kyori.adventure.key.Key angry()Returns the value of theangryrecord component.- Returns:
- the value of the
angryrecord component
-