Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

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.

script.zs
import crafttweaker.api.item.UseOnContext;

Members

Getter
script.zs
// UseOnContext.clickedFace as Direction
myUseOnContext.clickedFace

Return Type: Direction

clickedFace() as Direction
script.zs
// UseOnContext.clickedFace() as Direction;
myUseOnContext.clickedFace();

Return Type: Direction

Getter
script.zs
// UseOnContext.clickedPos as BlockPos
myUseOnContext.clickedPos

Return Type: BlockPos

clickedPos() as BlockPos
script.zs
// UseOnContext.clickedPos() as BlockPos;
myUseOnContext.clickedPos();

Return Type: BlockPos

Getter
script.zs
// UseOnContext.clickLocation as Vec3
myUseOnContext.clickLocation

Return Type: Vec3

clickLocation() as Vec3
script.zs
// UseOnContext.clickLocation() as Vec3;
myUseOnContext.clickLocation();

Return Type: Vec3

Getter
script.zs
// UseOnContext.hand as InteractionHand
myUseOnContext.hand

Return Type: InteractionHand

hand() as InteractionHand
script.zs
// UseOnContext.hand() as InteractionHand;
myUseOnContext.hand();

Return Type: InteractionHand

Getter
script.zs
// UseOnContext.horizontalDirection as Direction
myUseOnContext.horizontalDirection

Return Type: Direction

horizontalDirection() as Direction
script.zs
// UseOnContext.horizontalDirection() as Direction;
myUseOnContext.horizontalDirection();

Return Type: Direction

Getter
script.zs
// UseOnContext.isInside as bool
myUseOnContext.isInside

Return Type: bool

isInside() as bool
script.zs
// UseOnContext.isInside() as bool;
myUseOnContext.isInside();

Return Type: bool

Getter
script.zs
// UseOnContext.isSecondaryUseActive as bool
myUseOnContext.isSecondaryUseActive

Return Type: bool

isSecondaryUseActive() as bool
script.zs
// UseOnContext.isSecondaryUseActive() as bool;
myUseOnContext.isSecondaryUseActive();

Return Type: bool

Getter
script.zs
// UseOnContext.itemInHand as ItemStack
myUseOnContext.itemInHand

Return Type: ItemStack

itemInHand() as ItemStack
script.zs
// UseOnContext.itemInHand() as ItemStack;
myUseOnContext.itemInHand();

Return Type: ItemStack

Getter
script.zs
// UseOnContext.level as Level
myUseOnContext.level

Return Type: Level

level() as Level
script.zs
// UseOnContext.level() as Level;
myUseOnContext.level();

Return Type: Level

Getter
script.zs
// UseOnContext.player as Player
myUseOnContext.player

Return Type: Player

player() as Player
script.zs
// UseOnContext.player() as Player;
myUseOnContext.player();

Return Type: Player

Getter
script.zs
// UseOnContext.rotation as float
myUseOnContext.rotation

Return Type: float

rotation() as float
script.zs
// UseOnContext.rotation() as float;
myUseOnContext.rotation();

Return Type: float