public class AggressionEvent
extends net.minecraftforge.eventbus.api.Event
Cancelling this event will prevent the Pokémon from challenging the player.
Modifier and Type | Field and Description |
---|---|
net.minecraft.entity.MobEntity |
aggressor
The entity that is challenging the player.
|
net.minecraft.entity.player.ServerPlayerEntity |
player
The player being challenged.
|
Constructor and Description |
---|
AggressionEvent(net.minecraft.entity.MobEntity aggressor,
net.minecraft.entity.player.ServerPlayerEntity player) |
public final net.minecraft.entity.MobEntity aggressor
PixelmonEntity
or NPCTrainer
public final net.minecraft.entity.player.ServerPlayerEntity player