Package net.minestom.server.registry
Record Class Registry.WolfVariantEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.Registry.WolfVariantEntry
- All Implemented Interfaces:
Registry.Entry
- Enclosing class:
Registry
public static record Registry.WolfVariantEntry(net.minestom.server.utils.NamespaceID namespace, net.minestom.server.utils.NamespaceID wildTexture, net.minestom.server.utils.NamespaceID tameTexture, net.minestom.server.utils.NamespaceID angryTexture, List<String> biomes, Registry.Properties custom)
extends Record
implements Registry.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionWolfVariantEntry(String namespace, Registry.Properties main, Registry.Properties custom) WolfVariantEntry(net.minestom.server.utils.NamespaceID namespace, net.minestom.server.utils.NamespaceID wildTexture, net.minestom.server.utils.NamespaceID tameTexture, net.minestom.server.utils.NamespaceID angryTexture, List<String> biomes, Registry.Properties custom) Creates an instance of aWolfVariantEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.utils.NamespaceIDReturns the value of theangryTexturerecord component.biomes()Returns the value of thebiomesrecord component.custom()Returns the value of thecustomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minestom.server.utils.NamespaceIDReturns the value of thenamespacerecord component.net.minestom.server.utils.NamespaceIDReturns the value of thetameTexturerecord component.final StringtoString()Returns a string representation of this record class.net.minestom.server.utils.NamespaceIDReturns the value of thewildTexturerecord component.
-
Constructor Details
-
WolfVariantEntry
-
WolfVariantEntry
public WolfVariantEntry(net.minestom.server.utils.NamespaceID namespace, net.minestom.server.utils.NamespaceID wildTexture, net.minestom.server.utils.NamespaceID tameTexture, net.minestom.server.utils.NamespaceID angryTexture, List<String> biomes, Registry.Properties custom) Creates an instance of aWolfVariantEntryrecord class.- Parameters:
namespace- the value for thenamespacerecord componentwildTexture- the value for thewildTexturerecord componenttameTexture- the value for thetameTexturerecord componentangryTexture- the value for theangryTexturerecord componentbiomes- the value for thebiomesrecord componentcustom- the value for thecustomrecord 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). -
namespace
public net.minestom.server.utils.NamespaceID namespace()Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
wildTexture
public net.minestom.server.utils.NamespaceID wildTexture()Returns the value of thewildTexturerecord component.- Returns:
- the value of the
wildTexturerecord component
-
tameTexture
public net.minestom.server.utils.NamespaceID tameTexture()Returns the value of thetameTexturerecord component.- Returns:
- the value of the
tameTexturerecord component
-
angryTexture
public net.minestom.server.utils.NamespaceID angryTexture()Returns the value of theangryTexturerecord component.- Returns:
- the value of the
angryTexturerecord component
-
biomes
Returns the value of thebiomesrecord component.- Returns:
- the value of the
biomesrecord component
-
custom
Returns the value of thecustomrecord component.- Specified by:
customin interfaceRegistry.Entry- Returns:
- the value of the
customrecord component
-