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
Event.HasResult, Event.Result
Constructor and Description |
---|
AnimalTameEvent(EntityAnimal animal,
EntityPlayer tamer) |
Modifier and Type | Method and Description |
---|---|
EntityAnimal |
getAnimal() |
EntityPlayer |
getTamer() |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public AnimalTameEvent(EntityAnimal animal, EntityPlayer tamer)
public EntityAnimal getAnimal()
public EntityPlayer getTamer()