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.
import crafttweaker . api.command . CommandSource;
// CommandSource.acceptsFailure as bool
myCommandSource . acceptsFailure
Return Type:
bool
// CommandSource.acceptsFailure() as bool;
myCommandSource . acceptsFailure();
Return Type:
bool
// CommandSource.acceptsSuccess as bool
myCommandSource . acceptsSuccess
Return Type:
bool
// CommandSource.acceptsSuccess() as bool;
myCommandSource . acceptsSuccess();
Return Type:
bool
// CommandSource.alwaysAccepts as bool
myCommandSource . alwaysAccepts
Return Type:
bool
// CommandSource.alwaysAccepts() as bool;
myCommandSource . alwaysAccepts();
Return Type:
bool
// CommandSource.sendMessage(component as Component);
myCommandSource . sendMessage(myComponent);
// CommandSource.shouldInformAdmins as bool
myCommandSource . shouldInformAdmins
Return Type:
bool
// CommandSource.shouldInformAdmins() as bool;
myCommandSource . shouldInformAdmins();
Return Type:
bool