LivingUseTotemEvent
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.
import crafttweaker.neoforge.api.event.entity.living.LivingUseTotemEvent;
Extends
LivingUseTotemEvent extends LivingEvent
.
Implements
LivingUseTotemEvent
implements the following interfaces:
Listening to the event
This event can be listened to like so:
events.register<crafttweaker.neoforge.api.event.entity.living.LivingUseTotemEvent>(event => { println("LivingUseTotemEvent ran!");});
Members
cancel()
Cancels the event. Same as script.zs
setCanceled(true)
// LivingUseTotemEvent.cancel();event.cancel();
Getter
// LivingUseTotemEvent.canceled as boolevent.canceled
Return Type:
bool
Setter
// LivingUseTotemEvent.canceled = (cancel as bool);event.canceled = myBool;
Parameters:
cancel: bool
Type: bool
canceled() as bool
// LivingUseTotemEvent.canceled() as bool;event.canceled();
Return Type:
bool
canceled(cancel as bool)
// LivingUseTotemEvent.canceled(cancel as bool);event.canceled(myBool);
Parameters:
cancel: bool
Type: bool
Getter
// LivingUseTotemEvent.entity as LivingEntityevent.entity
Return Type:
LivingEntity
Getter
Getter
// LivingUseTotemEvent.holdingHand as InteractionHandevent.holdingHand
Return Type:
InteractionHand
Getter
// LivingUseTotemEvent.source as DamageSourceevent.source
Return Type:
DamageSource
Getter
// LivingUseTotemEvent.totem as IItemStackevent.totem
Return Type:
IItemStack