CommandSource
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.
import crafttweaker.api.command.CommandSource;
Methods
Return Type: boolean
// CommandSource.acceptsFailure() as boolean
myCommandSource.acceptsFailure();
Return Type: boolean
// CommandSource.acceptsSuccess() as boolean
myCommandSource.acceptsSuccess();
Return Type: boolean
// CommandSource.alwaysAccepts() as boolean
myCommandSource.alwaysAccepts();
Return Type: void
CommandSource.sendMessage(component as Component, senderUUID as invalid) as void
Parameter | Type | Description |
---|---|---|
Parameter component | Type Component | Description No Description Provided |
Parameter senderUUID | Type invalid | Description No Description Provided |
Return Type: boolean
// CommandSource.shouldInformAdmins() as boolean
myCommandSource.shouldInformAdmins();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name acceptsFailure | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name acceptsSuccess | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name alwaysAccepts | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name shouldInformAdmins | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |