-
Notifications
You must be signed in to change notification settings - Fork 23
Custom Events
This is a MOD ADDON ONLY feature intended for developers.
A cancellable event that is fired right before a player joins or hosts a raid.
Parameters:
ServerPlayer player
RaidBoss raidBoss
boolean isHost
A non-cancellable event that is fired when a player starts their raid battle.
Parameters:
ServerPlayer player
RaidBoss raidBoss
PokemonBattle battle
A non-cancellable event that is fired when the raid is completed.
Parameters:
ServerPlayer player
RaidBoss raidBoss
Pokemon pokemon
boolean isWin
A non-cancellable event that is fired when a raid spawns or refreshes.
Parameters:
ServerLevel level
BlockPos blockPos
RaidBoss raidBoss
A non-cancellable event that is fired before a raid spawns or refreshes.
The raid boss can be changed by subscribing to this event.
Parameters:
RaidBoss raidBoss
A cancellable event that is fired before a player receives their reward Pokemon.
The reward Pokemon can be modified with this event.
Parameters:
ServerPlayer player
Pokemon pokemon
A cancellable event that is fired before a player opens a raid pouch.
The reward items can be modified with this event.
Parameters:
ServerPlayer player
ItemStack pouch
List<ItemStack> rewards
A cancellable event that is fired before a player uses a Raid Shard to convert it to a Raid Den Crystal.
Parameters:
ServerPlayer player
ItemStack raidShard
A non-cancellable event that is fired when the catch rate is rolled for a player.
Parameters:
ServerPlayer player
Pokemon reward
float catchRate
- Game Mechanics
- Customisation
- For Developers
- Archived