Class AbstractNonPlayerActor

java.lang.Object
com.sk89q.worldedit.extension.platform.AbstractNonPlayerActor
All Implemented Interfaces:
Actor, SessionOwner, Subject, Identifiable

public abstract class AbstractNonPlayerActor extends Object implements Actor
  • 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 interface Actor
      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.
      Specified by:
      isPlayer in interface Actor
      Returns:
      true if a player
    • openFileOpenDialog

      public File openFileOpenDialog(String[] extensions)
      Description copied from interface: Actor
      Open a file open dialog.
      Specified by:
      openFileOpenDialog in interface Actor
      Parameters:
      extensions - null to allow all
      Returns:
      the selected file or null if something went wrong
    • openFileSaveDialog

      public File openFileSaveDialog(String[] extensions)
      Description copied from interface: Actor
      Open a file save dialog.
      Specified by:
      openFileSaveDialog in interface Actor
      Parameters:
      extensions - null to allow all
      Returns:
      the selected file or null if something went wrong
    • dispatchCUIEvent

      public void dispatchCUIEvent(CUIEvent event)
      Description copied from interface: Actor
      Send a CUI event.
      Specified by:
      dispatchCUIEvent in interface Actor
      Parameters:
      event - the event