public class AnimalTameEvent extends LivingEvent
EntityAnimal
is tamed. ForgeEventFactory#onAnimalTame(EntityAnimal, EntityPlayer)
.
Forge fires this event for applicable vanilla animals, mods need to fire it themselves.
This event is Cancelable
. If canceled, taming the animal will fail.
This event is fired on the MinecraftForge.EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private AnimalEntity |
animal |
private PlayerEntity |
tamer |
Constructor and Description |
---|
AnimalTameEvent(AnimalEntity animal,
PlayerEntity tamer) |
Modifier and Type | Method and Description |
---|---|
AnimalEntity |
getAnimal() |
PlayerEntity |
getTamer() |
getEntityLiving
getEntity
private final AnimalEntity animal
private final PlayerEntity tamer
public AnimalTameEvent(AnimalEntity animal, PlayerEntity tamer)
public AnimalEntity getAnimal()
public PlayerEntity getTamer()