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.kyori.adventure.key.Key key, net.kyori.adventure.key.Key wildTexture, net.kyori.adventure.key.Key tameTexture, net.kyori.adventure.key.Key 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.kyori.adventure.key.Key key, net.kyori.adventure.key.Key wildTexture, net.kyori.adventure.key.Key tameTexture, net.kyori.adventure.key.Key angryTexture, List<String> biomes, Registry.Properties custom) Creates an instance of aWolfVariantEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.key.KeyReturns 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.kyori.adventure.key.Keykey()Returns the value of thekeyrecord component.net.kyori.adventure.key.KeyReturns the value of thetameTexturerecord component.final StringtoString()Returns a string representation of this record class.net.kyori.adventure.key.KeyReturns the value of thewildTexturerecord component.
-
Constructor Details
-
WolfVariantEntry
-
WolfVariantEntry
public WolfVariantEntry(net.kyori.adventure.key.Key key, net.kyori.adventure.key.Key wildTexture, net.kyori.adventure.key.Key tameTexture, net.kyori.adventure.key.Key angryTexture, List<String> biomes, Registry.Properties custom) Creates an instance of aWolfVariantEntryrecord class.- Parameters:
key- the value for thekeyrecord 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). -
key
public net.kyori.adventure.key.Key key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
wildTexture
public net.kyori.adventure.key.Key wildTexture()Returns the value of thewildTexturerecord component.- Returns:
- the value of the
wildTexturerecord component
-
tameTexture
public net.kyori.adventure.key.Key tameTexture()Returns the value of thetameTexturerecord component.- Returns:
- the value of the
tameTexturerecord component
-
angryTexture
public net.kyori.adventure.key.Key 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
-