Class BukkitWorld

java.lang.Object
com.sk89q.worldedit.world.AbstractWorld
com.sk89q.worldedit.bukkit.BukkitWorld
All Implemented Interfaces:
com.sk89q.worldedit.extent.Extent, com.sk89q.worldedit.extent.InputExtent, com.sk89q.worldedit.extent.OutputExtent, com.sk89q.worldedit.registry.Keyed, com.sk89q.worldedit.world.World

public class BukkitWorld extends com.sk89q.worldedit.world.AbstractWorld
  • Constructor Summary

    Constructors
    Constructor
    Description
    BukkitWorld(org.bukkit.World world)
    Construct the object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<com.sk89q.worldedit.util.SideEffect>
    applySideEffects(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.block.BlockState previousType, com.sk89q.worldedit.util.SideEffectSet sideEffectSet)
     
    boolean
    canPlaceAt(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.block.BlockState blockState)
     
    void
    checkLoadedChunk(com.sk89q.worldedit.math.BlockVector3 pt)
     
    boolean
    clearContainerBlockContents(com.sk89q.worldedit.math.BlockVector3 pt)
     
    com.sk89q.worldedit.entity.Entity
    createEntity(com.sk89q.worldedit.util.Location location, com.sk89q.worldedit.entity.BaseEntity entity)
     
    void
    dropItem(com.sk89q.worldedit.math.Vector3 pt, com.sk89q.worldedit.blocks.BaseItemStack item)
     
    boolean
    equals(Object other)
     
    void
    fixAfterFastMode(Iterable<com.sk89q.worldedit.math.BlockVector2> chunks)
     
    boolean
     
    boolean
    generateTree(com.sk89q.worldedit.util.TreeGenerator.TreeType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 pt)
     
    com.sk89q.worldedit.world.biome.BiomeType
    getBiome(com.sk89q.worldedit.math.BlockVector3 position)
     
    com.sk89q.worldedit.world.block.BlockState
    getBlock(com.sk89q.worldedit.math.BlockVector3 position)
     
    int
    getBlockLightLevel(com.sk89q.worldedit.math.BlockVector3 pt)
     
    List<com.sk89q.worldedit.entity.Entity>
     
    List<com.sk89q.worldedit.entity.Entity>
    getEntities(com.sk89q.worldedit.regions.Region region)
     
    com.sk89q.worldedit.world.block.BaseBlock
    getFullBlock(com.sk89q.worldedit.math.BlockVector3 position)
     
     
    int
     
    int
     
     
    long
     
    com.sk89q.worldedit.math.BlockVector3
     
     
    com.sk89q.worldedit.world.weather.WeatherType
     
    org.bukkit.World
    Get the world handle.
    int
     
    boolean
    playEffect(com.sk89q.worldedit.math.Vector3 position, int type, int data)
     
    boolean
    regenerate(com.sk89q.worldedit.regions.Region region, com.sk89q.worldedit.extent.Extent extent, com.sk89q.worldedit.world.RegenOptions options)
     
    boolean
    setBiome(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.biome.BiomeType biome)
     
    <B extends com.sk89q.worldedit.world.block.BlockStateHolder<B>>
    boolean
    setBlock(com.sk89q.worldedit.math.BlockVector3 position, B block, com.sk89q.worldedit.util.SideEffectSet sideEffects)
     
    void
    setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType)
     
    void
    setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType, long duration)
     
    void
    simulateBlockMine(com.sk89q.worldedit.math.BlockVector3 pt)
     
    static org.bukkit.TreeType
    toBukkitTreeType(com.sk89q.worldedit.util.TreeGenerator.TreeType type)
     
    boolean
    useItem(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.blocks.BaseItem item, com.sk89q.worldedit.util.Direction face)
     

    Methods inherited from class com.sk89q.worldedit.world.AbstractWorld

    commit, createLiquidMask, dropItem, fixLighting, getMaximumPoint, getMinimumPoint, queueBlockBreakEffect, setBlock

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.sk89q.worldedit.extent.InputExtent

    getBiome

    Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent

    setBiome

    Methods inherited from interface com.sk89q.worldedit.world.World

    notifyAndLightBlock, regenerate, regenerate, setBlock
  • Constructor Details

    • BukkitWorld

      public BukkitWorld(org.bukkit.World world)
      Construct the object.
      Parameters:
      world - the world
  • Method Details

    • getEntities

      public List<com.sk89q.worldedit.entity.Entity> getEntities(com.sk89q.worldedit.regions.Region region)
    • getEntities

      public List<com.sk89q.worldedit.entity.Entity> getEntities()
    • createEntity

      @Nullable public com.sk89q.worldedit.entity.Entity createEntity(com.sk89q.worldedit.util.Location location, com.sk89q.worldedit.entity.BaseEntity entity)
    • getWorld

      public org.bukkit.World getWorld()
      Get the world handle.
      Returns:
      the world
    • getName

      public String getName()
    • getId

      public String getId()
    • getStoragePath

      public Path getStoragePath()
      Specified by:
      getStoragePath in interface com.sk89q.worldedit.world.World
      Overrides:
      getStoragePath in class com.sk89q.worldedit.world.AbstractWorld
    • getBlockLightLevel

      public int getBlockLightLevel(com.sk89q.worldedit.math.BlockVector3 pt)
    • regenerate

      public boolean regenerate(com.sk89q.worldedit.regions.Region region, com.sk89q.worldedit.extent.Extent extent, com.sk89q.worldedit.world.RegenOptions options)
    • clearContainerBlockContents

      public boolean clearContainerBlockContents(com.sk89q.worldedit.math.BlockVector3 pt)
    • toBukkitTreeType

      public static org.bukkit.TreeType toBukkitTreeType(com.sk89q.worldedit.util.TreeGenerator.TreeType type)
    • generateTree

      public boolean generateTree(com.sk89q.worldedit.util.TreeGenerator.TreeType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 pt)
    • dropItem

      public void dropItem(com.sk89q.worldedit.math.Vector3 pt, com.sk89q.worldedit.blocks.BaseItemStack item)
    • checkLoadedChunk

      public void checkLoadedChunk(com.sk89q.worldedit.math.BlockVector3 pt)
      Specified by:
      checkLoadedChunk in interface com.sk89q.worldedit.world.World
      Overrides:
      checkLoadedChunk in class com.sk89q.worldedit.world.AbstractWorld
    • equals

      public boolean equals(Object other)
      Specified by:
      equals in interface com.sk89q.worldedit.world.World
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.sk89q.worldedit.world.World
      Overrides:
      hashCode in class Object
    • getMaxY

      public int getMaxY()
      Specified by:
      getMaxY in interface com.sk89q.worldedit.world.World
      Overrides:
      getMaxY in class com.sk89q.worldedit.world.AbstractWorld
    • getMinY

      public int getMinY()
      Specified by:
      getMinY in interface com.sk89q.worldedit.world.World
      Overrides:
      getMinY in class com.sk89q.worldedit.world.AbstractWorld
    • fixAfterFastMode

      public void fixAfterFastMode(Iterable<com.sk89q.worldedit.math.BlockVector2> chunks)
      Specified by:
      fixAfterFastMode in interface com.sk89q.worldedit.world.World
      Overrides:
      fixAfterFastMode in class com.sk89q.worldedit.world.AbstractWorld
    • playEffect

      public boolean playEffect(com.sk89q.worldedit.math.Vector3 position, int type, int data)
      Specified by:
      playEffect in interface com.sk89q.worldedit.world.World
      Overrides:
      playEffect in class com.sk89q.worldedit.world.AbstractWorld
    • getWeather

      public com.sk89q.worldedit.world.weather.WeatherType getWeather()
      Specified by:
      getWeather in interface com.sk89q.worldedit.world.World
      Overrides:
      getWeather in class com.sk89q.worldedit.world.AbstractWorld
    • getRemainingWeatherDuration

      public long getRemainingWeatherDuration()
      Specified by:
      getRemainingWeatherDuration in interface com.sk89q.worldedit.world.World
      Overrides:
      getRemainingWeatherDuration in class com.sk89q.worldedit.world.AbstractWorld
    • setWeather

      public void setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType)
      Specified by:
      setWeather in interface com.sk89q.worldedit.world.World
      Overrides:
      setWeather in class com.sk89q.worldedit.world.AbstractWorld
    • setWeather

      public void setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType, long duration)
      Specified by:
      setWeather in interface com.sk89q.worldedit.world.World
      Overrides:
      setWeather in class com.sk89q.worldedit.world.AbstractWorld
    • getSpawnPosition

      public com.sk89q.worldedit.math.BlockVector3 getSpawnPosition()
    • simulateBlockMine

      public void simulateBlockMine(com.sk89q.worldedit.math.BlockVector3 pt)
    • canPlaceAt

      public boolean canPlaceAt(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.block.BlockState blockState)
    • getBlock

      public com.sk89q.worldedit.world.block.BlockState getBlock(com.sk89q.worldedit.math.BlockVector3 position)
    • setBlock

      public <B extends com.sk89q.worldedit.world.block.BlockStateHolder<B>> boolean setBlock(com.sk89q.worldedit.math.BlockVector3 position, B block, com.sk89q.worldedit.util.SideEffectSet sideEffects)
    • getFullBlock

      public com.sk89q.worldedit.world.block.BaseBlock getFullBlock(com.sk89q.worldedit.math.BlockVector3 position)
    • applySideEffects

      public Set<com.sk89q.worldedit.util.SideEffect> applySideEffects(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.block.BlockState previousType, com.sk89q.worldedit.util.SideEffectSet sideEffectSet)
    • useItem

      public boolean useItem(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.blocks.BaseItem item, com.sk89q.worldedit.util.Direction face)
      Specified by:
      useItem in interface com.sk89q.worldedit.world.World
      Overrides:
      useItem in class com.sk89q.worldedit.world.AbstractWorld
    • fullySupports3DBiomes

      public boolean fullySupports3DBiomes()
    • getBiome

      public com.sk89q.worldedit.world.biome.BiomeType getBiome(com.sk89q.worldedit.math.BlockVector3 position)
    • setBiome

      public boolean setBiome(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.biome.BiomeType biome)