Class HistoryExtent.TrackedEntity

java.lang.Object
com.fastasyncworldedit.core.extent.HistoryExtent.TrackedEntity
All Implemented Interfaces:
Entity, Locatable, Faceted
Enclosing class:
HistoryExtent

public class HistoryExtent.TrackedEntity extends Object implements Entity
  • Method Details

    • 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
    • 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
    • setLocation

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