CommandSource
Link to commandsource
Импорт класса
Link to импорт-класса
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;
Методы
Link to методы
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
Параметр | Тип | Описание |
---|---|---|
Параметр component | Тип Component | Описание No Description Provided |
Параметр senderUUID | Тип invalid | Описание No Description Provided |
Name: shouldInformAdmins
Return Type: boolean
ZenScript Copy// CommandSource.shouldInformAdmins() as boolean
myCommandSource.shouldInformAdmins();
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название acceptsFailure | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название acceptsSuccess | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название alwaysAccepts | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название shouldInformAdmins | Тип boolean | Имеет Getter true | Имеет Setter false | Описание No Description Provided |