Class BlockArrayClipboard.ClipboardEntity

java.lang.Object
com.sk89q.worldedit.extent.clipboard.BlockArrayClipboard.ClipboardEntity
All Implemented Interfaces:
Entity, Locatable, Faceted
Enclosing class:
BlockArrayClipboard

public static class BlockArrayClipboard.ClipboardEntity extends Object implements Entity
Stores entity data.
  • Constructor Details

    • ClipboardEntity

      public ClipboardEntity(Location loc, BaseEntity entity)
    • ClipboardEntity

      public ClipboardEntity(Clipboard clipboard, double x, double y, double z, float yaw, float pitch, BaseEntity entity)
  • Method Details

    • remove

      public boolean remove()
      Description copied from interface: Entity
      Remove this entity from it container.
      Specified by:
      remove in interface Entity
      Returns:
      true if removal was successful
    • getFacet

      @Nullable public <T> T getFacet(Class<? extends T> cls)
      Description copied from interface: Faceted
      Get the facet corresponding to the given class or interface.
      Specified by:
      getFacet in interface Faceted
      Type Parameters:
      T - the type
      Parameters:
      cls - the class or interface
      Returns:
      an implementation of the facet or null if one is unavailable
    • getState

      public BaseEntity getState()
      Description copied from interface: Entity
      Get a copy of the entity's state.

      In some cases, this method may return null if a snapshot of the entity can't be created. It may not be possible, for example, to get a snapshot of a player.

      Specified by:
      getState in interface Entity
      Returns:
      the entity's state or null if one cannot be created
    • getLocation

      public Location getLocation()
      Description copied from interface: Locatable
      Get the location of this actor.
      Specified by:
      getLocation in interface Locatable
      Returns:
      the location of the actor
    • getExtent

      public Extent getExtent()
      Description copied from interface: Locatable
      Get the extent that this actor is in.
      Specified by:
      getExtent in interface Locatable
      Returns:
      the extent
    • setLocation

      public boolean setLocation(Location loc)
      Description copied from interface: Locatable
      Sets the location of this actor.
      Specified by:
      setLocation in interface Locatable
      Parameters:
      loc - the new location of the actor
      Returns:
      if the teleport succeeded