UseOnContext
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.
Methods
Return Type: Vec3
Return Type: Direction
Return Type: BlockPos
Return Type: InteractionHand
Return Type: Direction
Return Type: ItemStack
Return Type: Level
Return Type: Player?
Return Type: float
Return Type: boolean
Return Type: boolean
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name clickLocation | Type Vec3 | Has Getter true | Has Setter false |
Name clickedFace | Type Direction | Has Getter true | Has Setter false |
Name clickedPos | Type BlockPos | Has Getter true | Has Setter false |
Name hand | Type InteractionHand | Has Getter true | Has Setter false |
Name horizontalDirection | Type Direction | Has Getter true | Has Setter false |
Name isInside | Type boolean | Has Getter true | Has Setter false |
Name isSecondaryUseActive | Type boolean | Has Getter true | Has Setter false |
Name itemInHand | Type ItemStack | Has Getter true | Has Setter false |
Name level | Type Level | Has Getter true | Has Setter false |
Name player | Type Player? | Has Getter true | Has Setter false |
Name rotation | Type float | Has Getter true | Has Setter false |