MCLivingEntityUseItemStartEvent
Link to mclivingentityuseitemstartevent
Fired when a player starts 'using' an item, typically when they hold right mouse. Examples: Drawing a bow Eating Food Drinking Potions/Milk Guarding with a sword
Cancel the event, or set the duration or <= 0 to prevent it from processing.
The event is cancelable.
If the event is canceled, it will not process.
The event does not have a result.
Importare la Classe
Link to importare-la-classe
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.event.entity.living.MCLivingEntityUseItemStartEvent;
Extending MCLivingEntityUseItemEvent
Link to extending-mclivingentityuseitemevent
MCLivingEntityUseItemStartEvent extends MCLivingEntityUseItemEvent. That means all methods available in MCLivingEntityUseItemEvent are also available in MCLivingEntityUseItemStartEvent