CommandSource
Link to commandsource
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 Copyimport crafttweaker.api.command.CommandSource;
Metodi
Link to metodi
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
Return Type: void
ZenScript CopyCommandSource.sendMessage(component as Component, senderUUID as invalid) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro component | Tipo Component | Descrizione No Description Provided |
Parametro senderUUID | Tipo invalid | Descrizione No Description Provided |
Name: shouldInformAdmins
Return Type: boolean
ZenScript Copy// CommandSource.shouldInformAdmins() as boolean
myCommandSource.shouldInformAdmins();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome acceptsFailure | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome acceptsSuccess | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome alwaysAccepts | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome shouldInformAdmins | Tipo boolean | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |