MCItemUseContext

A class to handle some data when using item.

Importing the class

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
Copy
import crafttweaker.api.item.MCItemUseContext;

Properties

NameTypeHas GetterHas SetterDescription
directionDirectiontruefalseNo Description Provided
handMCHandtruefalseNo Description Provided
hasSecondaryUseForPlayerbooleantruefalseNo Description Provided
hitVectorMCVector3dtruefalseNo Description Provided
placementHorizontalFacingDirectiontruefalse
playerMCPlayerEntity?truefalseNo Description Provided
posBlockPostruefalseNo Description Provided
worldMCWorldtruefalseNo Description Provided