ItemInteractionResult
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.
Implements
Undocumented Interfaces
Comparable<Enum>
Enum Constants
ItemInteractionResult is an enum with 6 constants. They are accessible like so:
Members
Getter
Return Type:
bool
Getter
Return Type:
InteractionResult
static sidedSuccess(successSide as bool) as ItemInteractionResult
Returns true if
successSide
is true, this can be used to return SUCCESS
on the client, but CONSUME
on the server.Returns: <constant:minecraft:world/iteminteractionresult:success> if successSide
is true, otherwise <constant:minecraft:world/iteminteractionresult:consume>.
Parameters:
successSide: bool
Type: bool
- Is the current side the success side.
Return Type:
ItemInteractionResult