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.

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.

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:

ZenGetters/ZenSetters

Link to zengetterszensetters

The following information can be retrieved/set during the event:

ZenGetterZenSetterType
ZenGetter
animal
ZenSetter
Type
IEntityAnimal
ZenGetter
animal
ZenSetter
Type
IEntityAnimal
ZenGetter
player
ZenSetter
Type
IPlayer