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 voidawardStatisticsForCaptureAttempts(net.minecraft.server.level.ServerPlayer serverPlayer) static voidonArcChaliceActivated(ArceusEvent.PlayFlute arceusEvent) static voidonAzureFluteCreatedAtArcChalice(ArceusEvent.CreateFlute arceusEvent) static voidonAzureFluteUsedNearTimespaceAltar(ArceusEvent.PlayFlute arceusEvent) static voidonBattleDamageCalculated(AttackEvent.Damage attackEvent) static voidonBattleDamageDealt(AttackEvent.DamageDealt attackEvent) static voidonBattleEnd(BattleEndEvent event) static voidonBattleStarted(BattleStartedEvent.Post battleStartedEvent) static voidonBlackOut(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 voidonCatchComboIncrement(CatchComboEvent.ComboIncrement catchComboEvent) static voidonConsumableItemUsed(UseBattleItemEvent useBattleItemEvent) static voidonCriticalHit(AttackEvent.CriticalHit attackEvent) static voidonCurryMade(CurryFinishedEvent curryFinishedEvent) static voidonEggCollected(DayCareEvent.PostCollect eggCollectedEvent) static voidonEggHatched(EggHatchEvent.Post eggHatchEvent) static voidonEggMoveLearnedViaMirrorHerb(MirrorHerbEggMoveEvent mirrorHerbEggMoveEvent) static voidonEggMovesetCreated(EggMovesetEvent eggMovesetEvent) static voidonElevatorUsed(ElevatorEvent.Post elevatorEvent) static voidonEVsGained(EVGainEvent.Post evGainEvent) Updates the players stats on the amount of EVs they've gained in battle.static voidonEVsGainedFromConsumables(EVsGainedEvent.Item evsGainedEvent) static voidonExperienceGained(ExperienceGainEvent experienceGainEvent) static voidonFossilCleaned(FossilCleanerEvent.ObtainingCleanFossil fossilCleanerEvent) static voidonFossilRevived(PokemonReceivedEvent pokemonReceivedEvent) static voidonFriendshipChanged(FriendshipChangedEvent friendshipChangedEvent) static voidonGen2BellActivated(Gen2BellEvent.SummonLegendary.Post gen2BellEvent) static voidonGSBallUsed(IlexShrineEvent.Post ilexShrineEvent) static voidonHealerUsed(HealerEvent.Pre healerEvent) static voidonIlexShrineActivated(IlexShrineEvent ilexShrineEvent) static voidonItemsEarnedFromBattle(DropEvent dropEvent) static voidonItemsPurchased(ShopEvent.Purchase.Post shopEvent) static voidonItemsSold(ShopEvent.Sell.Post shopEvent) static voidonLegendaryBirdShrineActivated(PlayerActivateShrineEvent.Post playerActivateShrineEvent) static voidonLevelUp(LevelUpEvent.Post levelUpEvent) static voidonLureExpired(LureExpiredEvent lureExpiredEvent) static voidonMailOpened(MailEvent.ReadMail.Post mailEvent) static voidonMaxRaidBattleWon(EndRaidEvent endRaidEvent) static voidonMaxRaidStarted(StartRaidEvent startRaidEvent) static voidonMewCloningCompleted(CloningCompleteEvent cloningCompleteEvent) static voidonMoveForgotten(MovesetEvent.ForgotMoveEvent movesetEvent) static voidonMoveLearned(MovesetEvent.LearntMoveEvent movesetEvent) static voidonMoveLearnedViaLevelUp(MovesetEvent.LearntMoveEvent movesetEvent) static voidonMoveSkillUsed(UseMoveSkillEvent moveSkillEvent) static voidonMoveTaughtViaItem(MovesetEvent.LearntMoveEvent movesetEvent) static voidonMoveTaughtViaNPC(TeachMoveEvent.MoveLearnt teachMoveEvent) static voidonMysteryBoxOpened(MysteryBoxEvent.Open.Post mysteryBoxEvent) static voidonNatureSynchronized(SynchronizeNatureEvent synchronizeNatureEvent) static voidonNonRaidCaptureAttempt(CaptureEvent.StartCapture captureEvent) static voidonNPCTrade(NPCTraderEvent.AcceptTrade.Post npcTraderEvent) static voidonPhotoOfPixelmonTaken(CameraEvent.TakePhoto cameraEvent) static voidonPickupAbilityActivated(PickupEvent pickupEvent) static voidonPixelmonDamageHealedOverworld(PassiveHealEvent.Post passiveHealEvent) static voidonPixelmonDefeated(PixelmonKnockoutEvent.Post pixelmonKnockoutEvent) static voidonPixelmonFaint(PixelmonFaintEvent.Post pixelmonFaintEvent) static voidonPixelmonFishingRodCast(FishingEvent.Cast fishingRodCastEvent) static voidonPixelmonGrassBattleStarted(PixelmonBlockStartingBattleEvent battleStartedEvent) static voidonPixelmonPoisonDamageOverworld(PassivePoisonEvent.Post passivePoisonEvent) static voidonPixelmonReleased(PixelmonDeletedEvent pixelmonDeletedEvent) static voidonPixelmonRevivedOverworld(PassiveHealEvent.Post passiveHealEvent) static voidonPixelmonStatusHealedOverworld(PassiveHealEvent.Post passiveHealEvent) static voidonPlateUsedOnArcChalice(ArceusEvent.AddPlate arceusEvent) static voidonPlayerTrade(PixelmonTradeEvent.Post pixelmonTradeEvent) static voidonPokeBallThrown(ThrowPokeballEvent throwPokeballEvent) static voidonPokeDollars(EconomyEvent.PostTransaction economyEvent) static voidonPokeLootFound(PokeLootEvent.GetDrops pokeLootEvent) static voidonPokemonEvolved(EvolveEvent.Post evolveEvent) static voidonPokemonReeledIn(FishingEvent.Reel reelEvent) static voidonPokerusContracted(PokerusEvent.Spread.Post pokerusEvent) static voidonPokeStopSpun(PokeStopEvent.Use.Post pokeStopEvent) static voidonRaidCaptureAttempt(CaptureEvent.StartRaidCapture captureEvent) static voidonRandomEggEvent(RandomEggEvent randomEggEvent) static voidonRecoilDamageTaken(AttackEvent.Recoil attackEvent) static voidonResearchCompleted(ResearchCompleteEvent researchCompleteEvent) static voidonResearchDiscarded(ResearchDiscardEvent.Post researchDiscardEvent) static voidonResearchStageCompleted(ResearchStageCompleteEvent researchStageCompleteEvent) static voidonResearchStarted(ResearchStartEvent.Post researchStartEvent) static voidonSheepPokemonSheared(ShearInteractionEvent shearInteractionEvent) static voidstatic voidstatic voidonTeamHealed(HealTeamEvent healTeamEvent) static voidonTimespaceAltarSummon(TimespaceEvent.Summon.Post timespaceEvent) static voidonTimespaceLegendarySummon(TimespaceEvent.Summon.Post timespaceEvent) static voidonTumblestoneBlockMined(TumblestoneBlockEvent.PostBlockBroke tumblestoneBlockEvent) static voidonUltraWormholeEntered(WormholeTeleportEvent.Post wormholeTeleportEvent) static voidonWarpPlateWarp(WarpPlateEvent warpPlateEvent) static voidonWildPixelmonDefeated(BeatWildPixelmonEvent beatWildPixelmonEvent) static voidonWildPixelmonHeldItemRerolled(WildPixelmonHeldItemRerolledEvent wildPixelmonHeldItemRerolledEvent) static voidonWildPixelmonInitiatingBattle(WildPixelmonAttackEvent wildPixelmonAttackEvent) static voidonWildTransformedDittoCaught(CaughtTransformedDittoEvent caughtTransformedDittoEvent) static voidonZygardeAssembled(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_TOTALandPixelmonStatisticsRegistry.EVS_GAINED_BATTLEfirst. UpdatesPixelmonStatisticsRegistry.EVS_GAINED_EXP_SHAREif it applies, and returns after doing so. If the Exp. Share stat doesn't apply, updatesPixelmonStatisticsRegistry.EVS_GAINED_DEFEATED_POKEMONandPixelmonStatisticsRegistry.EVS_GAINED_POWER_ITEMS. Updates thePixelmonStatisticsRegistry.EVS_GAINED_MACHO_BRACEstat and thePixelmonStatisticsRegistry.EVS_GAINED_POKERUSstat 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
-
onResearchCompleted
-
onResearchDiscarded
-
onResearchStageCompleted
-
onResearchStarted
-
onCurryMade
-
onElevatorUsed
-
onItemsPurchased
-
onItemsSold
-
onMailOpened
-
onPhotoOfPixelmonTaken
-
onPokerusContracted
-
onPixelmonDamageHealedOverworld
-
onPixelmonPoisonDamageOverworld
-
onPixelmonRevivedOverworld
-
onPixelmonStatusHealedOverworld
-
onHealerUsed
-
onSheepPokemonSheared
-
onTumblestoneBlockMined
public static void onTumblestoneBlockMined(TumblestoneBlockEvent.PostBlockBroke tumblestoneBlockEvent) -
onTeamHealed
-
onWarpPlateWarp
-