Class AnimalTameEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event

public class AnimalTameEvent extends LivingEvent
This event is fired when an Animal is tamed.
It is fired via ForgeEventFactory.onAnimalTame(Animal, Player). 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.
  • Field Details

    • animal

      private final Animal animal
    • tamer

      private final Player tamer
  • Constructor Details

    • AnimalTameEvent

      public AnimalTameEvent(Animal animal, Player tamer)
  • Method Details

    • getAnimal

      public Animal getAnimal()
    • getTamer

      public Player getTamer()