Class AggressionEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.AggressionEvent
public class AggressionEvent
extends net.minecraftforge.eventbus.api.Event
Event fired when a wild Pokémon attempts to attack a player.
Cancelling this event will prevent the Pokémon from challenging the player.
- Since:
- December 28, 2017
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAggressionEvent
(net.minecraft.world.entity.Mob aggressor, net.minecraft.server.level.ServerPlayer player) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
aggressor
public final net.minecraft.world.entity.Mob aggressorThe entity that is challenging the player. NormallyPixelmonEntity
orcom.pixelmonmod.pixelmon.entities.npcs.NPCTrainer
-
player
public final net.minecraft.server.level.ServerPlayer playerThe player being challenged.
-
-
Constructor Details
-
AggressionEvent
public AggressionEvent(net.minecraft.world.entity.Mob aggressor, net.minecraft.server.level.ServerPlayer player)
-