-
Notifications
You must be signed in to change notification settings - Fork 4
Events
For modders (and streamers using CCI), several events are added that allow them to interact with raids.
CalculateStrengthEvent is posted whenever the strength is calculated for a raid target. It contains the following values.
- type: Raid Target Type (Village or Player)
- blockPos: BlockPosition the raid is focused on.
- level: The level in which the raid happens.
- originalStrength: The original strength as calculated before the event was thrown
- strength: The current new strength, only this value can be updated.
CalculateStrengthEvent.Player is a subclass that also contains the Player Information.
CalculateStrengthEvent.Battle is a subclass that also contains the 2 factions that will go do battle with eachother.
FactionRaidEventis an event posted during a faction raid. The base event is never thrown directly, three sub events exist.
All events contain the raid itself as the sole parameter.
FactionRaidEvent.Wave is posted when a new wave is spawned.
FactionRaidEvent.Victory is posted when the wave resulted in a victory for the players.
FactionRaidEvent.Defeat is posted when the wave resulted in a defeat for the players.