Interface EntityEvent.AnimalTame
- Enclosing interface:
- EntityEvent
public static interface EntityEvent.AnimalTame
-
Method Summary
Modifier and TypeMethodDescriptiontame
(net.minecraft.world.entity.animal.Animal animal, net.minecraft.world.entity.player.Player player) Invoked before a tamable animal is tamed.
-
Method Details
-
tame
EventResult tame(net.minecraft.world.entity.animal.Animal animal, net.minecraft.world.entity.player.Player player) Invoked before a tamable animal is tamed. This event only works on vanilla mobs. Mods implementing their own entities may want to make their own events or invoke this. Equivalent to Forge'sAnimalTameEvent
event.- Parameters:
animal
- The animal being tamed.player
- The tamer.- Returns:
- A
EventResult
determining the outcome of the event, the action may be cancelled by the result.
-