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.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeightEvent.HasResult, Event.Result| コンストラクタと説明 |
|---|
AnimalTameEvent(AnimalEntity animal,
PlayerEntity tamer) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
AnimalEntity |
getAnimal() |
PlayerEntity |
getTamer() |
getEntityLivinggetEntitygetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic AnimalTameEvent(AnimalEntity animal, PlayerEntity tamer)
public AnimalEntity getAnimal()
public PlayerEntity getTamer()