AnimalTame
Link to animaltame
This event is fired to determine if an animal is going to be tamed. If canceled, the tame does not succeed. Otherwise, it simply serves as a notification of the tame taking place.
Event-Klasse
Link to event-klasse
You will need to cast the event in the function header as this class:
crafttweaker.event.AnimalTameEvent
You can, of course, also import the class before and use that name then.
Erweiterte Event-Schnittellen
Link to erweiterte-event-schnittellen
AnimalTame Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
ZenGetter/ZenSetter
Link to zengetterzensetter
The following information can be retrieved/set during the event:
ZenGetter | ZenSetter | Type |
---|---|---|
ZenGetter animal | ZenSetter | Type IEntityAnimal |
ZenGetter animal | ZenSetter | Type IEntityAnimal |
ZenGetter player | ZenSetter | Type IPlayer |