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
Modifier and TypeFieldDescriptionstatic final boolean
protected final String
protected WeakReference
<World> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapplySideEffects
(BlockVector3 position, BlockState previousType, SideEffectSet sideEffectSet) boolean
canPlaceAt
(BlockVector3 position, BlockState blockState) void
boolean
void
dropItem
(Vector3 pt, BaseItemStack item) boolean
void
fixAfterFastMode
(Iterable<BlockVector2> chunks) void
flush()
boolean
boolean
generateTree
(TreeGenerator.TreeType type, EditSession editSession, BlockVector3 pt) get
(int chunkX, int chunkZ) getBiome
(BlockVector3 position) getBlock
(BlockVector3 position) getBlockDrops
(BlockVector3 position) int
getEntities
(Region region) getFullBlock
(BlockVector3 position) int
getMaxY()
int
getMinY()
getName()
long
getWorld()
Get the world handle.protected World
Get the world handle.int
hashCode()
id()
boolean
playBlockBreakEffect
(Vector3 position, BlockType type) boolean
playEffect
(Vector3 position, int type, int data) void
refreshChunk
(int chunkX, int chunkZ) boolean
regenerate
(Region region, Extent extent, RegenOptions options) void
sendFakeChunk
(Player player, ChunkPacket packet) boolean
boolean
setBiome
(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) void
setWeather
(WeatherType weatherType) void
setWeather
(WeatherType weatherType, long duration) void
boolean
tile
(int x, int y, int z, FaweCompoundTag tile) static TreeType
boolean
useItem
(BlockVector3 position, BaseItem item, 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.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, spawnResource
Methods inherited from interface com.fastasyncworldedit.core.queue.IChunkCache
trim
Methods inherited from interface com.sk89q.worldedit.extent.InputExtent
getBiome, getBiomeType, getBlock, getBrightness, getBrightness, getEmittedLight, getEmittedLight, getFullBlock, getHeightMap, getOpacity, getOpacity, getSkyLight, getSkyLight
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
setBiome, setBlockLight, setBlockLight, setHeightMap, setSkyLight, setSkyLight, setTile
Methods 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:
getStoragePath
in interfaceWorld
- Overrides:
getStoragePath
in classAbstractWorld
-
getBlockLightLevel
-
regenerate
-
clearContainerBlockContents
-
toBukkitTreeType
-
generateTree
-
dropItem
-
checkLoadedChunk
- Specified by:
checkLoadedChunk
in interfaceWorld
- Overrides:
checkLoadedChunk
in classAbstractWorld
-
equals
-
hashCode
public int hashCode() -
getMaxY
public int getMaxY() -
getMinY
public int getMinY() -
fixAfterFastMode
- Specified by:
fixAfterFastMode
in interfaceWorld
- Overrides:
fixAfterFastMode
in classAbstractWorld
-
playEffect
- Specified by:
playEffect
in interfaceWorld
- Overrides:
playEffect
in classAbstractWorld
-
playBlockBreakEffect
- Specified by:
playBlockBreakEffect
in interfaceWorld
- Overrides:
playBlockBreakEffect
in classAbstractWorld
-
getWeather
- Specified by:
getWeather
in interfaceWorld
- Overrides:
getWeather
in classAbstractWorld
-
getRemainingWeatherDuration
public long getRemainingWeatherDuration()- Specified by:
getRemainingWeatherDuration
in interfaceWorld
- Overrides:
getRemainingWeatherDuration
in classAbstractWorld
-
setWeather
- Specified by:
setWeather
in interfaceWorld
- Overrides:
setWeather
in classAbstractWorld
-
setWeather
- Specified by:
setWeather
in interfaceWorld
- Overrides:
setWeather
in 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:
useItem
in interfaceWorld
- Overrides:
useItem
in 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()
-