Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.command.CommandSource;

Link to g-

Name: acceptsFailure

Return Type: boolean

ZenScript
Copy
// CommandSource.acceptsFailure() as boolean

myCommandSource.acceptsFailure();

Link to g--1

Name: acceptsSuccess

Return Type: boolean

ZenScript
Copy
// CommandSource.acceptsSuccess() as boolean

myCommandSource.acceptsSuccess();

Link to g--2

Name: alwaysAccepts

Return Type: boolean

ZenScript
Copy
// CommandSource.alwaysAccepts() as boolean

myCommandSource.alwaysAccepts();

Link to g--3

Name: sendMessage

Return Type: void

ZenScript
Copy
CommandSource.sendMessage(component as Component, senderUUID as invalid) as void
ParameterTypeDescription
Parameter
component
Type
Component
Description
No Description Provided
Parameter
senderUUID
Type
invalid
Description
No Description Provided

Link to g--4

Name: shouldInformAdmins

Return Type: boolean

ZenScript
Copy
// CommandSource.shouldInformAdmins() as boolean

myCommandSource.shouldInformAdmins();
NameTypeHas GetterHas SetterDescription
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