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.util.Locale |
getLocale()
Get the locale of this 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(com.sk89q.worldedit.util.formatting.text.Component component)
Print a
Component . |
void |
print(java.lang.String msg)
Deprecated.
Use component-based functions (printInfo)
|
default void |
printDebug(com.sk89q.worldedit.util.formatting.text.Component component)
Print a WorldEdit message.
|
void |
printDebug(java.lang.String msg)
Deprecated.
Use component-based functions (printDebug)
|
default void |
printError(com.sk89q.worldedit.util.formatting.text.Component component)
Print a WorldEdit error.
|
void |
printError(java.lang.String msg)
Deprecated.
Use component-based functions (printError)
|
default void |
printInfo(com.sk89q.worldedit.util.formatting.text.Component component)
Print a WorldEdit message.
|
void |
printRaw(java.lang.String msg)
Deprecated.
Use component-based functions (print)
|
default void |
sendAnnouncements()
Sends any relevant notices to the user when they first use WorldEdit in a session.
|
getUniqueId
getSessionKey
checkPermission, getGroups, hasPermission
java.lang.String getName()
default java.lang.String getDisplayName()
@Deprecated void printRaw(java.lang.String msg)
msg
- The message text@Deprecated void printDebug(java.lang.String msg)
msg
- The message text@Deprecated void print(java.lang.String msg)
msg
- The message text@Deprecated void printError(java.lang.String msg)
msg
- The error message textdefault void printError(com.sk89q.worldedit.util.formatting.text.Component component)
component
- The component to printdefault void printInfo(com.sk89q.worldedit.util.formatting.text.Component component)
component
- The component to printdefault void printDebug(com.sk89q.worldedit.util.formatting.text.Component component)
component
- The component to printvoid print(com.sk89q.worldedit.util.formatting.text.Component component)
Component
.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 eventjava.util.Locale getLocale()
default void sendAnnouncements()