Class BukkitEntity

java.lang.Object
com.sk89q.worldedit.bukkit.BukkitEntity
All Implemented Interfaces:
com.sk89q.worldedit.entity.Entity, com.sk89q.worldedit.extension.platform.Locatable, com.sk89q.worldedit.util.Faceted

public class BukkitEntity extends Object implements com.sk89q.worldedit.entity.Entity
An adapter to adapt a Bukkit entity into a WorldEdit one.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.sk89q.worldedit.extent.Extent
     
    <T> T
    getFacet(Class<? extends T> cls)
     
    com.sk89q.worldedit.util.Location
     
    com.sk89q.worldedit.entity.BaseEntity
     
    boolean
     
    boolean
    setLocation(com.sk89q.worldedit.util.Location location)
     

    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.entity.Entity

    getType

    Methods inherited from interface com.sk89q.worldedit.extension.platform.Locatable

    getBlockLocation, setPosition, trySetPosition
  • Constructor Details

    • BukkitEntity

      public BukkitEntity(Entity entity)
      Create a new instance.
      Parameters:
      entity - the entity
  • Method Details

    • getExtent

      public com.sk89q.worldedit.extent.Extent getExtent()
      Specified by:
      getExtent in interface com.sk89q.worldedit.extension.platform.Locatable
    • getLocation

      public com.sk89q.worldedit.util.Location getLocation()
      Specified by:
      getLocation in interface com.sk89q.worldedit.extension.platform.Locatable
    • setLocation

      public boolean setLocation(com.sk89q.worldedit.util.Location location)
      Specified by:
      setLocation in interface com.sk89q.worldedit.extension.platform.Locatable
    • getState

      public com.sk89q.worldedit.entity.BaseEntity getState()
      Specified by:
      getState in interface com.sk89q.worldedit.entity.Entity
    • remove

      public boolean remove()
      Specified by:
      remove in interface com.sk89q.worldedit.entity.Entity
    • getFacet

      @Nullable public <T> T getFacet(Class<? extends T> cls)
      Specified by:
      getFacet in interface com.sk89q.worldedit.util.Faceted