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.
Link to event-class
You will need to cast the event in the function header as this class:
You can, of course, also import the class before and use that name then.
Event interface extensions
Link to event-interface-extensions
AnimalTame Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
Link to zengetterszensetters
The following information can be retrieved/set during the event: