Importare la Classe

Link to importare-la-classe

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;

Name: acceptsFailure

Return Type: boolean

ZenScript
Copy
// CommandSource.acceptsFailure() as boolean

myCommandSource.acceptsFailure();

Name: acceptsSuccess

Return Type: boolean

ZenScript
Copy
// CommandSource.acceptsSuccess() as boolean

myCommandSource.acceptsSuccess();

Name: alwaysAccepts

Return Type: boolean

ZenScript
Copy
// CommandSource.alwaysAccepts() as boolean

myCommandSource.alwaysAccepts();

Name: sendMessage

ZenScript
Copy
CommandSource.sendMessage(component as Component)
ParametroTipo
Parametro
component
Tipo
Component

Link to shouldInformAdmins

Name: shouldInformAdmins

Return Type: boolean

ZenScript
Copy
// CommandSource.shouldInformAdmins() as boolean

myCommandSource.shouldInformAdmins();
NomeTipoHa GetterHa Setter
Nome
acceptsFailure
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
acceptsSuccess
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
alwaysAccepts
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
shouldInformAdmins
Tipo
boolean
Ha Getter
Ha Setter
no