Class AbstractNonPlayerActor
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractNonPlayerActor
- All Implemented Interfaces:
MapMetadatable
,Metadatable
,Actor
,SessionOwner
,Subject
,Identifiable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fastasyncworldedit.core.entity.Metadatable
Metadatable.METADATA_KEYS
-
Field Summary
Fields inherited from interface com.sk89q.worldedit.util.Identifiable
CONSOLE, EVERYONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the actor can destroy bedrock.void
dispatchCUIEvent
(CUIEvent event) Send a CUI event.boolean
isPlayer()
Return whether this actor is a player.openFileOpenDialog
(String[] extensions) Open a file open dialog.openFileSaveDialog
(String[] extensions) Open a file save dialog.boolean
Run a task either async, or on the current thread.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extension.platform.Actor
cancel, checkAction, confirm, decline, getDisplayName, getLimit, getLocale, getName, print, print, printDebug, printDebug, printError, printError, printInfo, printRaw, queueAction, runAsyncIfFree, runIfFree, sendAnnouncements
Methods inherited from interface com.sk89q.worldedit.util.Identifiable
getUniqueId
Methods inherited from interface com.fastasyncworldedit.core.entity.MapMetadatable
deleteMeta, getAndSetMeta, getMeta, getMeta, hasMeta, putIfAbsent, setMeta
Methods inherited from interface com.sk89q.worldedit.session.SessionOwner
getSession, getSessionKey
Methods inherited from interface com.sk89q.worldedit.util.auth.Subject
checkPermission, getGroups, hasPermission, setPermission, togglePermission
-
Constructor Details
-
AbstractNonPlayerActor
public AbstractNonPlayerActor()
-
-
Method Details
-
canDestroyBedrock
public boolean canDestroyBedrock()Description copied from interface:Actor
Returns true if the actor can destroy bedrock.- Specified by:
canDestroyBedrock
in interfaceActor
- Returns:
- true if bedrock can be broken by the actor
-
isPlayer
public boolean isPlayer()Description copied from interface:Actor
Return whether this actor is a player. -
openFileOpenDialog
Description copied from interface:Actor
Open a file open dialog.- Specified by:
openFileOpenDialog
in interfaceActor
- Parameters:
extensions
- null to allow all- Returns:
- the selected file or null if something went wrong
-
openFileSaveDialog
Description copied from interface:Actor
Open a file save dialog.- Specified by:
openFileSaveDialog
in interfaceActor
- Parameters:
extensions
- null to allow all- Returns:
- the selected file or null if something went wrong
-
dispatchCUIEvent
Description copied from interface:Actor
Send a CUI event.- Specified by:
dispatchCUIEvent
in interfaceActor
- Parameters:
event
- the event
-
getRawMeta
- Specified by:
getRawMeta
in interfaceMapMetadatable
-
runAction
Run a task either async, or on the current thread.
-