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 aPokedexData
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Component
Returns the value of thedaycareDuration
record component.List
<net.minecraft.world.item.ItemStack> Returns the value of thedaycareRequirements
record component.List
<net.minecraft.world.item.ItemStack> drops()
Returns the value of thedrops
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.Returns the value of thepokemonBase
record component.Returns the value of thespawningInfo
record component.final String
toString()
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 aPokedexData
record class.- Parameters:
pokemonBase
- the value for thepokemonBase
record componentspawningInfo
- the value for thespawningInfo
record componentdrops
- the value for thedrops
record componentdaycareRequirements
- the value for thedaycareRequirements
record componentdaycareDuration
- the value for thedaycareDuration
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)
. -
pokemonBase
Returns the value of thepokemonBase
record component.- Returns:
- the value of the
pokemonBase
record component
-
spawningInfo
Returns the value of thespawningInfo
record component.- Returns:
- the value of the
spawningInfo
record component
-
drops
Returns the value of thedrops
record component.- Returns:
- the value of the
drops
record component
-
daycareRequirements
Returns the value of thedaycareRequirements
record component.- Returns:
- the value of the
daycareRequirements
record component
-
daycareDuration
public net.minecraft.network.chat.Component daycareDuration()Returns the value of thedaycareDuration
record component.- Returns:
- the value of the
daycareDuration
record component
-