ArrowNock
This event is fired when a player begins using a bow.
Event Class
You will need to cast the event in the function header as this class:
crafttweaker.event.ArrowNockEvent
You can, of course, also import the class before and use that name then.
Event interface extensions
AnimalTame Events implement the following interfaces and are able to call all of their methods/getters/setters as well:
ZenGetters/ZenSetters
The following information can be retrieved/set during the event:
| ZenGetter | ZenSetter | Type |
|---|---|---|
ZenGetter bow | ZenSetter | Type IItemStack |
ZenGetter hand | ZenSetter | Type String |
ZenGetter player | ZenSetter | Type IPlayer |
ZenGetters/ZenSetters/ZenMethods from extensions
The following information can be retrieved/set during the event:
| ZenGetter | ZenSetter | Type |
|---|---|---|
ZenGetter result | ZenSetter | Type string with value of default, deny or allow |
ZenMethodes
event.deny()Method, sets the event’s result todenyevent.allow()Method, sets the event’s result toallowevent.default()Method, sets the event’s result todefault