Class AbstractNonPlayerActor
java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractNonPlayerActor
- All Implemented Interfaces:
Actor
,SessionOwner
,Subject
,Identifiable
-
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.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
getDisplayName, getLocale, getName, print, print, printDebug, printDebug, printError, printError, printInfo, printRaw, sendAnnouncements
Methods inherited from interface com.sk89q.worldedit.util.Identifiable
getUniqueId
Methods inherited from interface com.sk89q.worldedit.session.SessionOwner
getSessionKey
Methods inherited from interface com.sk89q.worldedit.util.auth.Subject
checkPermission, getGroups, hasPermission
-
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
-