LivingEntityUseItemEvent

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.event.entity.use.LivingEntityUseItemEvent;

Extends

LivingEntityUseItemEvent extends LivingEvent.

Members

Getter
script.zs
// LivingEntityUseItemEvent.duration as int
myLivingEntityUseItemEvent.duration

Return Type: int

Setter
script.zs
// LivingEntityUseItemEvent.duration = (duration as int);
myLivingEntityUseItemEvent.duration = myInt;

Parameters:

duration Type: int
Getter
script.zs
// LivingEntityUseItemEvent.entity as LivingEntity
myLivingEntityUseItemEvent.entity

Return Type: LivingEntity

Getter
script.zs
// LivingEntityUseItemEvent.entity as Entity
myLivingEntityUseItemEvent.entity

Return Type: Entity

Getter
script.zs
// LivingEntityUseItemEvent.item as IItemStack
myLivingEntityUseItemEvent.item

Return Type: IItemStack