Record Class PokedexData
java.lang.Object
java.lang.Record
com.pixelmonmod.pixelmon.client.storage.pokemon.PokedexData
public record PokedexData(PokemonBase pokemonBase, List<SimplifiedSpawning> spawningInfo, List<net.minecraft.world.item.ItemStack> drops, List<net.minecraft.world.item.ItemStack> daycareRequirements, net.minecraft.network.chat.Component daycareDuration)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPokedexData(PokemonBase pokemonBase, List<SimplifiedSpawning> spawningInfo, List<net.minecraft.world.item.ItemStack> drops, List<net.minecraft.world.item.ItemStack> daycareRequirements, net.minecraft.network.chat.Component daycareDuration) Creates an instance of aPokedexDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentReturns the value of thedaycareDurationrecord component.List<net.minecraft.world.item.ItemStack> Returns the value of thedaycareRequirementsrecord component.List<net.minecraft.world.item.ItemStack> drops()Returns the value of thedropsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepokemonBaserecord component.Returns the value of thespawningInforecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
PokedexData
public PokedexData(PokemonBase pokemonBase, List<SimplifiedSpawning> spawningInfo, List<net.minecraft.world.item.ItemStack> drops, List<net.minecraft.world.item.ItemStack> daycareRequirements, net.minecraft.network.chat.Component daycareDuration) Creates an instance of aPokedexDatarecord class.- Parameters:
pokemonBase- the value for thepokemonBaserecord componentspawningInfo- the value for thespawningInforecord componentdrops- the value for thedropsrecord componentdaycareRequirements- the value for thedaycareRequirementsrecord componentdaycareDuration- the value for thedaycareDurationrecord 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). -
pokemonBase
Returns the value of thepokemonBaserecord component.- Returns:
- the value of the
pokemonBaserecord component
-
spawningInfo
Returns the value of thespawningInforecord component.- Returns:
- the value of the
spawningInforecord component
-
drops
Returns the value of thedropsrecord component.- Returns:
- the value of the
dropsrecord component
-
daycareRequirements
Returns the value of thedaycareRequirementsrecord component.- Returns:
- the value of the
daycareRequirementsrecord component
-
daycareDuration
public net.minecraft.network.chat.Component daycareDuration()Returns the value of thedaycareDurationrecord component.- Returns:
- the value of the
daycareDurationrecord component
-