UseOnContext
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.api.item.UseOnContext;
Members
Getter
// UseOnContext.hand as InteractionHandmyUseOnContext.hand
Return Type:
InteractionHand
hand() as InteractionHand
Getter
// UseOnContext.isInside as boolmyUseOnContext.isInside
Return Type:
bool
isInside() as bool
// UseOnContext.isInside() as bool;myUseOnContext.isInside();
Return Type:
bool
Getter
// UseOnContext.isSecondaryUseActive as boolmyUseOnContext.isSecondaryUseActive
Return Type:
bool
isSecondaryUseActive() as bool
// UseOnContext.isSecondaryUseActive() as bool;myUseOnContext.isSecondaryUseActive();
Return Type:
bool
Getter
// UseOnContext.rotation as floatmyUseOnContext.rotation
Return Type:
float
rotation() as float
// UseOnContext.rotation() as float;myUseOnContext.rotation();
Return Type:
float