CommandSource
Link to commandsource
Diese Klasse importieren
Link to diese-klasse-importieren
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;
Methoden
Link to methoden
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
Parameter | Type | Beschreibung |
---|---|---|
Parameter component | Type Component | Beschreibung No Description Provided |
Parameter senderUUID | Type invalid | Beschreibung No Description Provided |
Name: shouldInformAdmins
Return Type: boolean
ZenScript Copy// CommandSource.shouldInformAdmins() as boolean
myCommandSource.shouldInformAdmins();
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name acceptsFailure | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name acceptsSuccess | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name alwaysAccepts | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name shouldInformAdmins | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |