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
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) getId()
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()
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>>
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.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
-
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
-
getId
-
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
-
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) -
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
-
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)
-