Record Class EggSprite
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.api.pokemon.species.palette.EggSprite
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEggSprite(int cycles, ResourceWithFallback sprite) Creates an instance of aEggSpriterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcycles()Returns the value of thecyclesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
EggSprite
Creates an instance of aEggSpriterecord class.- Parameters:
cycles- the value for thecyclesrecord componentsprite- the value for thespriterecord component
-
-
Method Details
-
fromMap
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
cycles
public int cycles()Returns the value of thecyclesrecord component.- Returns:
- the value of the
cyclesrecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-