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 aAssets
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.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.@NotNull net.kyori.adventure.key.Key
tame()
Returns the value of thetame
record component.final String
toString()
Returns a string representation of this record class.@NotNull net.kyori.adventure.key.Key
wild()
Returns the value of thewild
record 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 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
-
hashCode
-
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 thewild
record component.- Returns:
- the value of the
wild
record component
-
tame
@NotNull public @NotNull net.kyori.adventure.key.Key tame()Returns the value of thetame
record component.- Returns:
- the value of the
tame
record component
-
angry
@NotNull public @NotNull net.kyori.adventure.key.Key angry()Returns the value of theangry
record component.- Returns:
- the value of the
angry
record component
-