Record Class WolfVariant.AssetInfo
java.lang.Object
java.lang.Record
net.minecraft.world.entity.animal.wolf.WolfVariant.AssetInfo
- Enclosing class:
WolfVariant
public static record WolfVariant.AssetInfo(ClientAsset wild, ClientAsset tame, ClientAsset angry)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientAsset
The field for theangry
record component.static final com.mojang.serialization.Codec
<WolfVariant.AssetInfo> private final ClientAsset
The field for thetame
record component.private final ClientAsset
The field for thewild
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAssetInfo
(ClientAsset wild, ClientAsset tame, ClientAsset angry) Creates an instance of aAssetInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionangry()
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.tame()
Returns the value of thetame
record component.final String
toString()
Returns a string representation of this record class.wild()
Returns the value of thewild
record component.
-
Field Details
-
wild
The field for thewild
record component. -
tame
The field for thetame
record component. -
angry
The field for theangry
record component. -
CODEC
-
-
Constructor Details
-
AssetInfo
Creates an instance of aAssetInfo
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
Returns the value of thewild
record component.- Returns:
- the value of the
wild
record component
-
tame
Returns the value of thetame
record component.- Returns:
- the value of the
tame
record component
-
angry
Returns the value of theangry
record component.- Returns:
- the value of the
angry
record component
-