Package com.sk89q.worldedit.bukkit
Class BukkitWorld
java.lang.Object
com.sk89q.worldedit.world.AbstractWorld
com.sk89q.worldedit.bukkit.BukkitWorld
- All Implemented Interfaces:
IChunkCache<IChunkGet>,Trimable,Extent,InputExtent,OutputExtent,Keyed,World
- Direct Known Subclasses:
FaweBukkitWorld
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanprotected final Stringprotected WeakReference<World> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplySideEffects(BlockVector3 position, BlockState previousType, SideEffectSet sideEffectSet) booleancanPlaceAt(BlockVector3 position, BlockState blockState) voidbooleanvoiddropItem(Vector3 pt, BaseItemStack item) booleanvoidfixAfterFastMode(Iterable<BlockVector2> chunks) voidflush()booleanbooleangenerateTree(TreeGenerator.TreeType type, EditSession editSession, BlockVector3 pt) get(int chunkX, int chunkZ) getBiome(BlockVector3 position) getBlock(BlockVector3 position) getBlockDrops(BlockVector3 position) intgetEntities(Region region) getFullBlock(BlockVector3 position) intgetMaxY()intgetMinY()getName()longgetWorld()Get the world handle.protected WorldGet the world handle.inthashCode()id()booleanplayBlockBreakEffect(Vector3 position, BlockType type) booleanplayEffect(Vector3 position, int type, int data) voidrefreshChunk(int chunkX, int chunkZ) booleanregenerate(Region region, Extent extent, RegenOptions options) voidsendFakeChunk(Player player, ChunkPacket packet) booleanbooleansetBiome(BlockVector3 position, BiomeType biome) <T extends BlockStateHolder<T>>
booleansetBlock(int x, int y, int z, T block) <B extends BlockStateHolder<B>>
booleansetBlock(BlockVector3 position, B block, SideEffectSet sideEffects) voidsetWeather(WeatherType weatherType) voidsetWeather(WeatherType weatherType, long duration) voidbooleantile(int x, int y, int z, FaweCompoundTag tile) static TreeTypebooleanuseItem(BlockVector3 position, BaseItem item, Direction face) Methods inherited from class com.sk89q.worldedit.world.AbstractWorld
commit, createLiquidMask, dropItem, fixLighting, getMaximumPoint, getMinimumPoint, queueBlockBreakEffect, setBlockMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sk89q.worldedit.extent.Extent
addCaves, addOre, addOres, addPostProcessor, addProcessor, addSchems, apply, apply, cancel, center, contains, contains, countBlocks, countBlocks, createEntity, createEntity, disableHistory, disableQueue, enableHistory, enableQueue, generate, getBlockDistribution, getBlockDistributionWithData, getHighestTerrainBlock, getHighestTerrainBlock, getNearestSurfaceLayer, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, getNearestSurfaceTerrainBlock, isQueueEnabled, lazyCopy, regenerateChunk, relight, relightBlock, relightSky, removeEntity, replaceBlocks, replaceBlocks, replaceBlocks, setBlocks, setBlocks, setBlocks, spawnResourceMethods inherited from interface com.fastasyncworldedit.core.queue.IChunkCache
trimMethods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBiomeType, getBlock, getBrightness, getBrightness, getEmittedLight, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getOpacity, getSkyLight, getSkyLightMethods inherited from interface com.sk89q.worldedit.extent.OutputExtent
setBiome, setBlockLight, setBlockLight, setHeightMap, setSkyLight, setSkyLight, setTileMethods inherited from interface com.sk89q.worldedit.world.World
isWorld, notifyAndLightBlock, regenerate, regenerate, setBlock
-
Field Details
-
HAS_MIN_Y
public static final boolean HAS_MIN_Y -
worldRef
-
worldNameRef
-
-
Constructor Details
-
BukkitWorld
Construct the object.- Parameters:
world- the world
-
-
Method Details
-
getEntities
-
getEntities
-
getWorld
Get the world handle.- Returns:
- the world
-
getWorldChecked
Get the world handle.- Returns:
- the world
- Throws:
WorldEditException
-
getName
-
getNameUnsafe
-
id
-
getStoragePath
- Specified by:
getStoragePathin interfaceWorld- Overrides:
getStoragePathin classAbstractWorld
-
getBlockLightLevel
-
regenerate
-
clearContainerBlockContents
-
toBukkitTreeType
-
generateTree
-
dropItem
-
checkLoadedChunk
- Specified by:
checkLoadedChunkin interfaceWorld- Overrides:
checkLoadedChunkin classAbstractWorld
-
equals
-
hashCode
public int hashCode() -
getMaxY
public int getMaxY() -
getMinY
public int getMinY() -
fixAfterFastMode
- Specified by:
fixAfterFastModein interfaceWorld- Overrides:
fixAfterFastModein classAbstractWorld
-
playEffect
- Specified by:
playEffectin interfaceWorld- Overrides:
playEffectin classAbstractWorld
-
playBlockBreakEffect
- Specified by:
playBlockBreakEffectin interfaceWorld- Overrides:
playBlockBreakEffectin classAbstractWorld
-
getWeather
- Specified by:
getWeatherin interfaceWorld- Overrides:
getWeatherin classAbstractWorld
-
getRemainingWeatherDuration
public long getRemainingWeatherDuration()- Specified by:
getRemainingWeatherDurationin interfaceWorld- Overrides:
getRemainingWeatherDurationin classAbstractWorld
-
setWeather
- Specified by:
setWeatherin interfaceWorld- Overrides:
setWeatherin classAbstractWorld
-
setWeather
- Specified by:
setWeatherin interfaceWorld- Overrides:
setWeatherin classAbstractWorld
-
getSpawnPosition
-
simulateBlockMine
-
getBlockDrops
-
canPlaceAt
-
getBlock
-
setBlock
public <B extends BlockStateHolder<B>> boolean setBlock(BlockVector3 position, B block, SideEffectSet sideEffects) -
getFullBlock
-
applySideEffects
public Set<SideEffect> applySideEffects(BlockVector3 position, BlockState previousType, SideEffectSet sideEffectSet) -
useItem
- Specified by:
useItemin interfaceWorld- Overrides:
useItemin classAbstractWorld
-
fullySupports3DBiomes
public boolean fullySupports3DBiomes() -
getBiome
-
setBiome
-
setBlock
public <T extends BlockStateHolder<T>> boolean setBlock(int x, int y, int z, T block) throws WorldEditException - Throws:
WorldEditException
-
tile
- Throws:
WorldEditException
-
setBiome
-
refreshChunk
public void refreshChunk(int chunkX, int chunkZ) -
get
-
sendFakeChunk
-
flush
public void flush()
-