Class PixelmonStatisticsPixelmonListener
java.lang.Object
com.pixelmonmod.pixelmon.listener.PixelmonStatisticsPixelmonListener
All the custom stats Pixelmon adds in the
PixelmonStatisticsRegistry
that require listening to events from Pixelmon are awarded values here
through the use of event listeners. The event listeners should try to be kept in an order
closest to the order of the stats in the PixelmonStatisticsRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
awardStatisticsForCaptureAttempts
(net.minecraft.server.level.ServerPlayer serverPlayer) static void
onArcChaliceActivated
(ArceusEvent.PlayFlute arceusEvent) static void
onAzureFluteCreatedAtArcChalice
(ArceusEvent.CreateFlute arceusEvent) static void
onAzureFluteUsedNearTimespaceAltar
(ArceusEvent.PlayFlute arceusEvent) static void
onBattleDamageCalculated
(AttackEvent.Damage attackEvent) static void
onBattleDamageDealt
(AttackEvent.DamageDealt attackEvent) static void
onBattleEnd
(BattleEndEvent event) static void
onBattleStarted
(BattleStartedEvent.Post battleStartedEvent) static void
onBlackOut
(PartyFaintRespawnEvent.Post partyFaintRespawnEvent) "In English releases of the Generation II and III games, and Japanese releases of the Generation II games and Pokémon HeartGold and SoulSilver, the player will instead white out." "In English versions starting in Pokémon: Let's Go, Pikachu! and Let's Go, Eevee!, the player will instead be overwhelmed by their defeat." Black Outstatic void
onCatchComboIncrement
(CatchComboEvent.ComboIncrement catchComboEvent) static void
onConsumableItemUsed
(UseBattleItemEvent useBattleItemEvent) static void
onCriticalHit
(AttackEvent.CriticalHit attackEvent) static void
onCurryMade
(CurryFinishedEvent curryFinishedEvent) static void
onEggCollected
(DayCareEvent.PostCollect eggCollectedEvent) static void
onEggHatched
(EggHatchEvent.Post eggHatchEvent) static void
onEggMoveLearnedViaMirrorHerb
(MirrorHerbEggMoveEvent mirrorHerbEggMoveEvent) static void
onEggMovesetCreated
(EggMovesetEvent eggMovesetEvent) static void
onElevatorUsed
(ElevatorEvent.Post elevatorEvent) static void
onEVsGained
(EVGainEvent.Post evGainEvent) Updates the players stats on the amount of EVs they've gained in battle.static void
onEVsGainedFromConsumables
(EVsGainedEvent.Item evsGainedEvent) static void
onExperienceGained
(ExperienceGainEvent experienceGainEvent) static void
onFossilCleaned
(FossilCleanerEvent.ObtainingCleanFossil fossilCleanerEvent) static void
onFossilRevived
(PokemonReceivedEvent pokemonReceivedEvent) static void
onFriendshipChanged
(FriendshipChangedEvent friendshipChangedEvent) static void
onGen2BellActivated
(Gen2BellEvent.SummonLegendary.Post gen2BellEvent) static void
onGSBallUsed
(IlexShrineEvent.Post ilexShrineEvent) static void
onHealerUsed
(HealerEvent.Pre healerEvent) static void
onIlexShrineActivated
(IlexShrineEvent ilexShrineEvent) static void
onItemInfusedSingleplayer
(InfuserEvent.CreateItem.Post infuserEvent) static void
onItemsEarnedFromBattle
(DropEvent dropEvent) static void
onItemsPurchased
(ShopEvent.Purchase.Post shopEvent) static void
onItemsSold
(ShopEvent.Sell.Post shopEvent) static void
onLegendaryBirdShrineActivated
(PlayerActivateShrineEvent.Post playerActivateShrineEvent) static void
onLevelUp
(LevelUpEvent.Post levelUpEvent) static void
onLureExpired
(LureExpiredEvent lureExpiredEvent) static void
onMailOpened
(MailEvent.ReadMail.Post mailEvent) static void
onMaxRaidBattleWon
(EndRaidEvent endRaidEvent) static void
onMaxRaidStarted
(StartRaidEvent startRaidEvent) static void
onMewCloningCompleted
(CloningCompleteEvent cloningCompleteEvent) static void
onMoveForgotten
(MovesetEvent.ForgotMoveEvent movesetEvent) static void
onMoveLearned
(MovesetEvent.LearntMoveEvent movesetEvent) static void
onMoveLearnedViaLevelUp
(MovesetEvent.LearntMoveEvent movesetEvent) static void
onMoveSkillUsed
(UseMoveSkillEvent moveSkillEvent) static void
onMoveTaughtViaItem
(MovesetEvent.LearntMoveEvent movesetEvent) static void
onMoveTaughtViaNPC
(TeachMoveEvent.MoveLearnt teachMoveEvent) static void
onMysteryBoxOpened
(MysteryBoxEvent.Open.Post mysteryBoxEvent) static void
onNatureSynchronized
(SynchronizeNatureEvent synchronizeNatureEvent) static void
onNonRaidCaptureAttempt
(CaptureEvent.StartCapture captureEvent) static void
onNPCTrade
(NPCTraderEvent.AcceptTrade.Post npcTraderEvent) static void
onPhotoOfPixelmonTaken
(CameraEvent.TakePhoto cameraEvent) static void
onPickupAbilityActivated
(PickupEvent pickupEvent) static void
onPixelmonDamageHealedOverworld
(PassiveHealEvent.Post passiveHealEvent) static void
onPixelmonDefeated
(PixelmonKnockoutEvent pixelmonKnockoutEvent) static void
onPixelmonFaint
(PixelmonFaintEvent.Post pixelmonFaintEvent) static void
onPixelmonFishingRodCast
(FishingEvent.Cast fishingRodCastEvent) static void
onPixelmonGrassBattleStarted
(PixelmonBlockStartingBattleEvent battleStartedEvent) static void
onPixelmonPoisonDamageOverworld
(PassivePoisonEvent.Post passivePoisonEvent) static void
onPixelmonReleased
(PixelmonDeletedEvent pixelmonDeletedEvent) static void
onPixelmonRevivedOverworld
(PassiveHealEvent.Post passiveHealEvent) static void
onPixelmonStatusHealedOverworld
(PassiveHealEvent.Post passiveHealEvent) static void
onPlateUsedOnArcChalice
(ArceusEvent.AddPlate arceusEvent) static void
onPlayerTrade
(PixelmonTradeEvent.Post pixelmonTradeEvent) static void
onPokeBallThrown
(ThrowPokeballEvent throwPokeballEvent) static void
onPokedexOpened
(PokedexOpenedEvent.Post pokedexOpenedEvent) static void
onPokeDollars
(EconomyEvent.PostTransaction economyEvent) static void
onPokeLootFound
(PokeLootEvent.GetDrops pokeLootEvent) static void
onPokemonEvolved
(EvolveEvent.Post evolveEvent) static void
onPokemonReeledIn
(FishingEvent.Reel reelEvent) static void
onPokerusContracted
(PokerusEvent.Spread.Post pokerusEvent) static void
onPokeStopSpun
(PokeStopEvent.Use.Post pokeStopEvent) static void
onRaidCaptureAttempt
(CaptureEvent.StartRaidCapture captureEvent) static void
onRandomEggEvent
(RandomEggEvent randomEggEvent) static void
onRecoilDamageTaken
(AttackEvent.Recoil attackEvent) static void
onResearchCompleted
(ResearchCompleteEvent researchCompleteEvent) static void
onResearchDiscarded
(ResearchDiscardEvent.Post researchDiscardEvent) static void
onResearchStageCompleted
(ResearchStageCompleteEvent researchStageCompleteEvent) static void
onResearchStarted
(ResearchStartEvent.Post researchStartEvent) static void
onSheepPokemonSheared
(ShearInteractionEvent shearInteractionEvent) static void
static void
static void
onTeamHealed
(HealTeamEvent healTeamEvent) static void
onTimespaceAltarSummon
(TimespaceEvent.Summon.Post timespaceEvent) static void
onTimespaceLegendarySummon
(TimespaceEvent.Summon.Post timespaceEvent) static void
onTumblestoneBlockMined
(TumblestoneBlockEvent.PostBlockBroke tumblestoneBlockEvent) static void
onUltraWormholeEntered
(WormholeTeleportEvent.Post wormholeTeleportEvent) static void
onWarpPlateWarp
(WarpPlateEvent warpPlateEvent) static void
onWildPixelmonDefeated
(BeatWildPixelmonEvent beatWildPixelmonEvent) static void
onWildPixelmonHeldItemRerolled
(WildPixelmonHeldItemRerolledEvent wildPixelmonHeldItemRerolledEvent) static void
onWildPixelmonInitiatingBattle
(WildPixelmonAttackEvent wildPixelmonAttackEvent) static void
onWildTransformedDittoCaught
(CaughtTransformedDittoEvent caughtTransformedDittoEvent) static void
onZygardeAssembled
(ZygardeEvent.Assemble.New.End zygardeEvent)
-
Constructor Details
-
PixelmonStatisticsPixelmonListener
public PixelmonStatisticsPixelmonListener()
-
-
Method Details
-
onNonRaidCaptureAttempt
-
onRaidCaptureAttempt
-
awardStatisticsForCaptureAttempts
public static void awardStatisticsForCaptureAttempts(@Nonnull net.minecraft.server.level.ServerPlayer serverPlayer) -
onSuccessfulNonRaidCapture
-
onSuccessfulRaidCapture
-
onPixelmonReleased
-
onCatchComboIncrement
-
onPokeBallThrown
-
onBlackOut
"In English releases of the Generation II and III games, and Japanese releases of the Generation II games and Pokémon HeartGold and SoulSilver, the player will instead white out." "In English versions starting in Pokémon: Let's Go, Pikachu! and Let's Go, Eevee!, the player will instead be overwhelmed by their defeat." Black Out- Parameters:
partyFaintRespawnEvent
- Occurs when the player's entire Pokémon team faints.
-
onConsumableItemUsed
-
onCriticalHit
-
onItemsEarnedFromBattle
-
onBattleDamageCalculated
-
onBattleDamageDealt
-
onRecoilDamageTaken
-
onPixelmonFaint
-
onWildTransformedDittoCaught
public static void onWildTransformedDittoCaught(CaughtTransformedDittoEvent caughtTransformedDittoEvent) -
onWildPixelmonInitiatingBattle
-
onBattleStarted
-
onWildPixelmonDefeated
-
onPixelmonDefeated
-
onBattleEnd
-
onPixelmonGrassBattleStarted
public static void onPixelmonGrassBattleStarted(PixelmonBlockStartingBattleEvent battleStartedEvent) -
onMaxRaidStarted
-
onMaxRaidBattleWon
-
onEggCollected
-
onEggHatched
-
onRandomEggEvent
-
onPixelmonFishingRodCast
-
onPokemonReeledIn
-
onExperienceGained
-
onLevelUp
-
onPokemonEvolved
-
onMoveForgotten
-
onMoveLearned
-
onMoveLearnedViaLevelUp
-
onMoveTaughtViaItem
-
onMoveTaughtViaNPC
-
onEggMovesetCreated
-
onEggMoveLearnedViaMirrorHerb
-
onNPCTrade
-
onPlayerTrade
-
onLegendaryBirdShrineActivated
public static void onLegendaryBirdShrineActivated(PlayerActivateShrineEvent.Post playerActivateShrineEvent) -
onMewCloningCompleted
-
onGen2BellActivated
-
onIlexShrineActivated
-
onTimespaceAltarSummon
-
onArcChaliceActivated
-
onZygardeAssembled
-
onMysteryBoxOpened
-
onPokeLootFound
-
onPokeStopSpun
-
onUltraWormholeEntered
-
onAzureFluteCreatedAtArcChalice
-
onAzureFluteUsedNearTimespaceAltar
-
onGSBallUsed
-
onLureExpired
-
onPlateUsedOnArcChalice
-
onTimespaceLegendarySummon
-
onFossilCleaned
-
onFossilRevived
-
onEVsGained
Updates the players stats on the amount of EVs they've gained in battle.Updates
PixelmonStatisticsRegistry.EVS_GAINED_TOTAL
andPixelmonStatisticsRegistry.EVS_GAINED_BATTLE
first. UpdatesPixelmonStatisticsRegistry.EVS_GAINED_EXP_SHARE
if it applies, and returns after doing so. If the Exp. Share stat doesn't apply, updatesPixelmonStatisticsRegistry.EVS_GAINED_DEFEATED_POKEMON
andPixelmonStatisticsRegistry.EVS_GAINED_POWER_ITEMS
. Updates thePixelmonStatisticsRegistry.EVS_GAINED_MACHO_BRACE
stat and thePixelmonStatisticsRegistry.EVS_GAINED_POKERUS
stat last in case the Pokémon did not fully utilize all of the doubled EVs due to reaching a maximum limit.- Parameters:
evGainEvent
- An event that occurs after EVs are gained.
-
onEVsGainedFromConsumables
-
onNatureSynchronized
-
onPickupAbilityActivated
-
onWildPixelmonHeldItemRerolled
public static void onWildPixelmonHeldItemRerolled(WildPixelmonHeldItemRerolledEvent wildPixelmonHeldItemRerolledEvent) -
onFriendshipChanged
-
onMoveSkillUsed
-
onPokeDollars
-
onPokedexOpened
-
onResearchCompleted
-
onResearchDiscarded
-
onResearchStageCompleted
-
onResearchStarted
-
onCurryMade
-
onElevatorUsed
-
onItemInfusedSingleplayer
-
onItemsPurchased
-
onItemsSold
-
onMailOpened
-
onPhotoOfPixelmonTaken
-
onPokerusContracted
-
onPixelmonDamageHealedOverworld
-
onPixelmonPoisonDamageOverworld
-
onPixelmonRevivedOverworld
-
onPixelmonStatusHealedOverworld
-
onHealerUsed
-
onSheepPokemonSheared
-
onTumblestoneBlockMined
public static void onTumblestoneBlockMined(TumblestoneBlockEvent.PostBlockBroke tumblestoneBlockEvent) -
onTeamHealed
-
onWarpPlateWarp
-