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()booleanbooleangenerateFeature(ConfiguredFeatureType type, EditSession editSession, BlockVector3 position) booleangenerateStructure(StructureType type, EditSession editSession, BlockVector3 position) booleangenerateTree(TreeGenerator.TreeType type, EditSession editSession, BlockVector3 pt) Deprecated.booleangenerateTree(TreeType type, EditSession editSession, BlockVector3 position) 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) intremoveEntities(Region region) 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 TreeTypeDeprecated.booleanuseItem(BlockVector3 position, BaseItem item, Direction face) Methods inherited from class AbstractWorld
commit, createLiquidMask, dropItem, fixLighting, getMaximumPoint, getMinimumPoint, queueBlockBreakEffect, setBlockMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Extent
addCaves, addOre, addOre, addOres, 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 IChunkCache
trimMethods inherited from interface InputExtent
getBiome, getBiomeType, getBlock, getBrightness, getBrightness, getEmittedLight, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getOpacity, getSkyLight, getSkyLightMethods inherited from interface OutputExtent
setBiome, setBlockLight, setBlockLight, setHeightMap, setSkyLight, setSkyLight, setTileMethods inherited from interface World
isWorld, notifyAndLightBlock, regenerate, regenerate, setBlock
-
Field Details
-
HAS_MIN_Y
public static final boolean HAS_MIN_Y -
worldRef
-
worldNameRef
-
-
Constructor Details
-
BukkitWorld
-
-
Method Details
-
getEntities
-
getEntities
-
removeEntities
-
getWorld
-
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
Deprecated. -
generateTree
@Deprecated public boolean generateTree(TreeGenerator.TreeType type, EditSession editSession, BlockVector3 pt) Deprecated. -
generateTree
public boolean generateTree(TreeType type, EditSession editSession, BlockVector3 position) throws MaxChangedBlocksException - Throws:
MaxChangedBlocksException
-
dropItem
-
checkLoadedChunk
- Specified by:
checkLoadedChunkin interfaceWorld- Overrides:
checkLoadedChunkin classAbstractWorld
-
equals
-
hashCode
-
getMaxY
-
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
-
generateFeature
public boolean generateFeature(ConfiguredFeatureType type, EditSession editSession, BlockVector3 position) -
generateStructure
public boolean generateStructure(StructureType type, EditSession editSession, BlockVector3 position) -
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()
-