Package com.sk89q.worldedit.bukkit
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
-
Method Summary
Modifier and TypeMethodDescriptionSet
<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
void
fixAfterFastMode
(Iterable<com.sk89q.worldedit.math.BlockVector2> chunks) boolean
generateFeature
(com.sk89q.worldedit.world.generation.ConfiguredFeatureType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position) boolean
generateStructure
(com.sk89q.worldedit.world.generation.StructureType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position) 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
getMaxY()
int
getMinY()
getName()
long
com.sk89q.worldedit.math.BlockVector3
com.sk89q.worldedit.world.weather.WeatherType
org.bukkit.World
getWorld()
Get the world handle.int
hashCode()
id()
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) void
sendBiomeUpdates
(Iterable<com.sk89q.worldedit.math.BlockVector2> chunks) boolean
setBiome
(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.biome.BiomeType biome) <B extends com.sk89q.worldedit.world.block.BlockStateHolder<B>>
booleansetBlock
(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.registry.Keyed
getId
Methods inherited from interface com.sk89q.worldedit.extent.OutputExtent
fullySupports3DBiomes, 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
-
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
-
id
-
getStoragePath
- Specified by:
getStoragePath
in interfacecom.sk89q.worldedit.world.World
- Overrides:
getStoragePath
in classcom.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 interfacecom.sk89q.worldedit.world.World
- Overrides:
checkLoadedChunk
in classcom.sk89q.worldedit.world.AbstractWorld
-
equals
-
hashCode
public int hashCode() -
getMaxY
public int getMaxY()- Specified by:
getMaxY
in interfacecom.sk89q.worldedit.world.World
- Overrides:
getMaxY
in classcom.sk89q.worldedit.world.AbstractWorld
-
getMinY
public int getMinY()- Specified by:
getMinY
in interfacecom.sk89q.worldedit.world.World
- Overrides:
getMinY
in classcom.sk89q.worldedit.world.AbstractWorld
-
fixAfterFastMode
- Specified by:
fixAfterFastMode
in interfacecom.sk89q.worldedit.world.World
- Overrides:
fixAfterFastMode
in classcom.sk89q.worldedit.world.AbstractWorld
-
sendBiomeUpdates
- Specified by:
sendBiomeUpdates
in interfacecom.sk89q.worldedit.world.World
- Overrides:
sendBiomeUpdates
in classcom.sk89q.worldedit.world.AbstractWorld
-
playEffect
public boolean playEffect(com.sk89q.worldedit.math.Vector3 position, int type, int data) - Specified by:
playEffect
in interfacecom.sk89q.worldedit.world.World
- Overrides:
playEffect
in classcom.sk89q.worldedit.world.AbstractWorld
-
getWeather
public com.sk89q.worldedit.world.weather.WeatherType getWeather()- Specified by:
getWeather
in interfacecom.sk89q.worldedit.world.World
- Overrides:
getWeather
in classcom.sk89q.worldedit.world.AbstractWorld
-
getRemainingWeatherDuration
public long getRemainingWeatherDuration()- Specified by:
getRemainingWeatherDuration
in interfacecom.sk89q.worldedit.world.World
- Overrides:
getRemainingWeatherDuration
in classcom.sk89q.worldedit.world.AbstractWorld
-
setWeather
public void setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType) - Specified by:
setWeather
in interfacecom.sk89q.worldedit.world.World
- Overrides:
setWeather
in classcom.sk89q.worldedit.world.AbstractWorld
-
setWeather
public void setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType, long duration) - Specified by:
setWeather
in interfacecom.sk89q.worldedit.world.World
- Overrides:
setWeather
in classcom.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) -
generateFeature
public boolean generateFeature(com.sk89q.worldedit.world.generation.ConfiguredFeatureType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position) -
generateStructure
public boolean generateStructure(com.sk89q.worldedit.world.generation.StructureType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position) -
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 interfacecom.sk89q.worldedit.world.World
- Overrides:
useItem
in classcom.sk89q.worldedit.world.AbstractWorld
-
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)
-