public class ForgeWorld
extends com.sk89q.worldedit.world.AbstractWorld
| Modifier and Type | Method and Description |
|---|---|
void |
checkLoadedChunk(com.sk89q.worldedit.Vector pt) |
boolean |
clearContainerBlockContents(com.sk89q.worldedit.Vector position) |
com.sk89q.worldedit.entity.Entity |
createEntity(com.sk89q.worldedit.util.Location location,
com.sk89q.worldedit.entity.BaseEntity entity) |
void |
dropItem(com.sk89q.worldedit.Vector position,
com.sk89q.worldedit.blocks.BaseItemStack item) |
boolean |
equals(java.lang.Object o) |
void |
fixAfterFastMode(java.lang.Iterable<com.sk89q.worldedit.BlockVector2D> chunks) |
void |
fixLighting(java.lang.Iterable<com.sk89q.worldedit.BlockVector2D> chunks) |
boolean |
generateTree(com.sk89q.worldedit.util.TreeGenerator.TreeType type,
com.sk89q.worldedit.EditSession editSession,
com.sk89q.worldedit.Vector position) |
com.sk89q.worldedit.world.biome.BaseBiome |
getBiome(com.sk89q.worldedit.Vector2D position) |
com.sk89q.worldedit.world.block.BlockState |
getBlock(com.sk89q.worldedit.Vector position) |
int |
getBlockLightLevel(com.sk89q.worldedit.Vector position) |
java.util.List<? extends com.sk89q.worldedit.entity.Entity> |
getEntities() |
java.util.List<? extends com.sk89q.worldedit.entity.Entity> |
getEntities(com.sk89q.worldedit.regions.Region region) |
com.sk89q.worldedit.world.block.BaseBlock |
getFullBlock(com.sk89q.worldedit.Vector position) |
java.lang.String |
getName() |
long |
getRemainingWeatherDuration() |
com.sk89q.worldedit.world.weather.WeatherType |
getWeather() |
net.minecraft.world.World |
getWorld()
Get the underlying handle to the world.
|
net.minecraft.world.World |
getWorldChecked()
Get the underlying handle to the world.
|
int |
hashCode() |
boolean |
playEffect(com.sk89q.worldedit.Vector position,
int type,
int data) |
boolean |
regenerate(com.sk89q.worldedit.regions.Region region,
com.sk89q.worldedit.EditSession editSession) |
boolean |
setBiome(com.sk89q.worldedit.Vector2D position,
com.sk89q.worldedit.world.biome.BaseBiome biome) |
boolean |
setBlock(com.sk89q.worldedit.Vector position,
com.sk89q.worldedit.world.block.BlockStateHolder block,
boolean notifyAndLight) |
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.Vector position) |
boolean |
useItem(com.sk89q.worldedit.Vector position,
com.sk89q.worldedit.blocks.BaseItem item,
com.sk89q.worldedit.util.Direction face) |
public net.minecraft.world.World getWorldChecked()
throws com.sk89q.worldedit.WorldEditException
com.sk89q.worldedit.WorldEditException - thrown if a reference to the world was lost (i.e. world was unloaded)public net.minecraft.world.World getWorld()
java.lang.RuntimeException - thrown if a reference to the world was lost (i.e. world was unloaded)public java.lang.String getName()
public boolean setBlock(com.sk89q.worldedit.Vector position,
com.sk89q.worldedit.world.block.BlockStateHolder block,
boolean notifyAndLight)
throws com.sk89q.worldedit.WorldEditException
com.sk89q.worldedit.WorldEditExceptionpublic int getBlockLightLevel(com.sk89q.worldedit.Vector position)
public boolean clearContainerBlockContents(com.sk89q.worldedit.Vector position)
public com.sk89q.worldedit.world.biome.BaseBiome getBiome(com.sk89q.worldedit.Vector2D position)
public boolean setBiome(com.sk89q.worldedit.Vector2D position,
com.sk89q.worldedit.world.biome.BaseBiome biome)
public boolean useItem(com.sk89q.worldedit.Vector position,
com.sk89q.worldedit.blocks.BaseItem item,
com.sk89q.worldedit.util.Direction face)
useItem in interface com.sk89q.worldedit.world.WorlduseItem in class com.sk89q.worldedit.world.AbstractWorldpublic void dropItem(com.sk89q.worldedit.Vector position,
com.sk89q.worldedit.blocks.BaseItemStack item)
public void simulateBlockMine(com.sk89q.worldedit.Vector position)
public boolean regenerate(com.sk89q.worldedit.regions.Region region,
com.sk89q.worldedit.EditSession editSession)
public boolean generateTree(com.sk89q.worldedit.util.TreeGenerator.TreeType type,
com.sk89q.worldedit.EditSession editSession,
com.sk89q.worldedit.Vector position)
throws com.sk89q.worldedit.MaxChangedBlocksException
com.sk89q.worldedit.MaxChangedBlocksExceptionpublic void checkLoadedChunk(com.sk89q.worldedit.Vector pt)
checkLoadedChunk in interface com.sk89q.worldedit.world.WorldcheckLoadedChunk in class com.sk89q.worldedit.world.AbstractWorldpublic void fixAfterFastMode(java.lang.Iterable<com.sk89q.worldedit.BlockVector2D> chunks)
fixAfterFastMode in interface com.sk89q.worldedit.world.WorldfixAfterFastMode in class com.sk89q.worldedit.world.AbstractWorldpublic void fixLighting(java.lang.Iterable<com.sk89q.worldedit.BlockVector2D> chunks)
fixLighting in interface com.sk89q.worldedit.world.WorldfixLighting in class com.sk89q.worldedit.world.AbstractWorldpublic boolean playEffect(com.sk89q.worldedit.Vector position,
int type,
int data)
playEffect in interface com.sk89q.worldedit.world.WorldplayEffect in class com.sk89q.worldedit.world.AbstractWorldpublic com.sk89q.worldedit.world.weather.WeatherType getWeather()
public long getRemainingWeatherDuration()
public void setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType)
public void setWeather(com.sk89q.worldedit.world.weather.WeatherType weatherType,
long duration)
public com.sk89q.worldedit.world.block.BlockState getBlock(com.sk89q.worldedit.Vector position)
public com.sk89q.worldedit.world.block.BaseBlock getFullBlock(com.sk89q.worldedit.Vector position)
public int hashCode()
hashCode in interface com.sk89q.worldedit.world.WorldhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface com.sk89q.worldedit.world.Worldequals in class java.lang.Objectpublic java.util.List<? extends com.sk89q.worldedit.entity.Entity> getEntities(com.sk89q.worldedit.regions.Region region)
public java.util.List<? extends com.sk89q.worldedit.entity.Entity> getEntities()
@Nullable
public com.sk89q.worldedit.entity.Entity createEntity(com.sk89q.worldedit.util.Location location,
com.sk89q.worldedit.entity.BaseEntity entity)