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.
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>.
script.zs
// ItemInteractionResult.sidedSuccess(successSide as bool) as ItemInteractionResult;
ItemInteractionResult.sidedSuccess(true);
Parameters:
successSide: boolType: bool
- Is the current side the success side.