public interface Actor extends Identifiable, SessionOwner, Subject
Modifier and Type | Method and Description |
---|---|
boolean |
canDestroyBedrock()
Returns true if the actor can destroy bedrock.
|
void |
dispatchCUIEvent(CUIEvent event)
Send a CUI event.
|
default java.lang.String |
getDisplayName()
Gets the display name of the actor.
|
java.lang.String |
getName()
Get the name of the actor.
|
boolean |
isPlayer()
Return whether this actor is a player.
|
java.io.File |
openFileOpenDialog(java.lang.String[] extensions)
Open a file open dialog.
|
java.io.File |
openFileSaveDialog(java.lang.String[] extensions)
Open a file save dialog.
|
void |
print(java.lang.String msg)
Print a WorldEdit message.
|
void |
print(com.sk89q.worldedit.util.formatting.text.TextComponent component)
Print a
TextComponent . |
void |
printDebug(java.lang.String msg)
Print a WorldEdit message.
|
void |
printError(java.lang.String msg)
Print a WorldEdit error.
|
void |
printRaw(java.lang.String msg)
Print a message.
|
getUniqueId
getSessionKey
checkPermission, getGroups, hasPermission
java.lang.String getName()
default java.lang.String getDisplayName()
void printRaw(java.lang.String msg)
msg
- The message textvoid printDebug(java.lang.String msg)
msg
- The message textvoid print(java.lang.String msg)
msg
- The message textvoid printError(java.lang.String msg)
msg
- The error message textvoid print(com.sk89q.worldedit.util.formatting.text.TextComponent component)
TextComponent
.component
- The component to printboolean canDestroyBedrock()
boolean isPlayer()
java.io.File openFileOpenDialog(java.lang.String[] extensions)
extensions
- null to allow alljava.io.File openFileSaveDialog(java.lang.String[] extensions)
extensions
- null to allow allvoid dispatchCUIEvent(CUIEvent event)
event
- the event