Class PokedexRecordEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.pokedex.event.PokedexRecordEvent
- Direct Known Subclasses:
PokedexRecordEvent.NewLargest
,PokedexRecordEvent.NewSmallest
public abstract class PokedexRecordEvent
extends net.neoforged.bus.api.Event
This event is fired when a player's Pokedex records a new "record" for an entry.
It can be used to track when a player sets a new largest or smallest record for a specific Pokedex type.
Note: This event could be fired for non-players, at which point
It can be used to track when a player sets a new largest or smallest record for a specific Pokedex type.
Note: This event could be fired for non-players, at which point
getPlayer()
will return null.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Fired when a player sets a new largest record for a specific entry in a Pokedex type.static class
Fired when a player sets a new smallest record for a specific entry in a Pokedex type. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PokedexRecordEvent
(net.minecraft.resources.ResourceKey<Pokedex> pokedexType, net.minecraft.world.entity.player.Player player, Pokemon pokemon, double oldRecord, double newRecord) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
net.minecraft.world.entity.player.Player
net.minecraft.resources.ResourceKey
<Pokedex>
-
Field Details
-
pokedexType
-
player
protected final net.minecraft.world.entity.player.Player player -
pokemon
-
oldRecord
protected final double oldRecord -
newRecord
protected final double newRecord
-
-
Constructor Details
-
PokedexRecordEvent
-
-
Method Details
-
getPokedexType
-
getPlayer
public net.minecraft.world.entity.player.Player getPlayer() -
getPokemon
-
getOldRecord
public double getOldRecord() -
getNewRecord
public double getNewRecord()
-