Class ClipboardWorld
java.lang.Object
com.sk89q.worldedit.world.AbstractWorld
com.sk89q.worldedit.cli.schematic.ClipboardWorld
- All Implemented Interfaces:
CLIWorld
,com.sk89q.worldedit.extent.clipboard.Clipboard
,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 ClipboardWorld
extends com.sk89q.worldedit.world.AbstractWorld
implements com.sk89q.worldedit.extent.clipboard.Clipboard, CLIWorld
-
Constructor Summary
ConstructorDescriptionClipboardWorld
(File file, com.sk89q.worldedit.extent.clipboard.Clipboard clipboard, String name) -
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
clearContainerBlockContents
(com.sk89q.worldedit.math.BlockVector3 position) 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 position, com.sk89q.worldedit.blocks.BaseItemStack item) boolean
generateTree
(com.sk89q.worldedit.util.TreeGenerator.TreeType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position) 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 position) com.sk89q.worldedit.math.BlockVector3
List
<? extends com.sk89q.worldedit.entity.Entity> List
<? extends 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) com.sk89q.worldedit.math.BlockVector3
com.sk89q.worldedit.math.BlockVector3
getName()
com.sk89q.worldedit.math.BlockVector3
com.sk89q.worldedit.regions.Region
com.sk89q.worldedit.math.BlockVector3
boolean
id()
boolean
isDirty()
Gets whether the world is dirty.boolean
regenerate
(com.sk89q.worldedit.regions.Region region, com.sk89q.worldedit.extent.Extent extent, com.sk89q.worldedit.world.RegenOptions options) void
save
(boolean force) Saves this world back to file if dirty or forced.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
setDirty
(boolean dirty) Set the world's dirty status.void
setOrigin
(com.sk89q.worldedit.math.BlockVector3 origin) void
simulateBlockMine
(com.sk89q.worldedit.math.BlockVector3 position) Methods inherited from class com.sk89q.worldedit.world.AbstractWorld
checkLoadedChunk, commit, createLiquidMask, dropItem, fixAfterFastMode, fixLighting, getMaxY, getMinY, getRemainingWeatherDuration, getStoragePath, getWeather, playEffect, queueBlockBreakEffect, sendBiomeUpdates, setBlock, setWeather, setWeather, useItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.extent.clipboard.Clipboard
transform
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
commit, fullySupports3DBiomes, setBiome, setBlock
Methods inherited from interface com.sk89q.worldedit.world.World
canPlaceAt, equals, generateFeature, generateStructure, hashCode, notifyAndLightBlock, regenerate, regenerate, setBlock
-
Constructor Details
-
ClipboardWorld
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.sk89q.worldedit.world.World
-
id
- Specified by:
id
in interfacecom.sk89q.worldedit.registry.Keyed
-
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) throws com.sk89q.worldedit.WorldEditException - Specified by:
setBlock
in interfacecom.sk89q.worldedit.world.World
- Throws:
com.sk89q.worldedit.WorldEditException
-
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) throws com.sk89q.worldedit.WorldEditException - Specified by:
applySideEffects
in interfacecom.sk89q.worldedit.world.World
- Throws:
com.sk89q.worldedit.WorldEditException
-
getBlockLightLevel
public int getBlockLightLevel(com.sk89q.worldedit.math.BlockVector3 position) - Specified by:
getBlockLightLevel
in interfacecom.sk89q.worldedit.world.World
-
clearContainerBlockContents
public boolean clearContainerBlockContents(com.sk89q.worldedit.math.BlockVector3 position) - Specified by:
clearContainerBlockContents
in interfacecom.sk89q.worldedit.world.World
-
dropItem
public void dropItem(com.sk89q.worldedit.math.Vector3 position, com.sk89q.worldedit.blocks.BaseItemStack item) - Specified by:
dropItem
in interfacecom.sk89q.worldedit.world.World
-
simulateBlockMine
public void simulateBlockMine(com.sk89q.worldedit.math.BlockVector3 position) - Specified by:
simulateBlockMine
in interfacecom.sk89q.worldedit.world.World
-
regenerate
public boolean regenerate(com.sk89q.worldedit.regions.Region region, com.sk89q.worldedit.extent.Extent extent, com.sk89q.worldedit.world.RegenOptions options) - Specified by:
regenerate
in interfacecom.sk89q.worldedit.world.World
-
generateTree
public boolean generateTree(com.sk89q.worldedit.util.TreeGenerator.TreeType type, com.sk89q.worldedit.EditSession editSession, com.sk89q.worldedit.math.BlockVector3 position) throws com.sk89q.worldedit.MaxChangedBlocksException - Specified by:
generateTree
in interfacecom.sk89q.worldedit.world.World
- Throws:
com.sk89q.worldedit.MaxChangedBlocksException
-
getSpawnPosition
public com.sk89q.worldedit.math.BlockVector3 getSpawnPosition()- Specified by:
getSpawnPosition
in interfacecom.sk89q.worldedit.world.World
-
getEntities
public List<? extends com.sk89q.worldedit.entity.Entity> getEntities(com.sk89q.worldedit.regions.Region region) - Specified by:
getEntities
in interfacecom.sk89q.worldedit.extent.Extent
-
getEntities
- Specified by:
getEntities
in interfacecom.sk89q.worldedit.extent.Extent
-
createEntity
@Nullable public com.sk89q.worldedit.entity.Entity createEntity(com.sk89q.worldedit.util.Location location, com.sk89q.worldedit.entity.BaseEntity entity) - Specified by:
createEntity
in interfacecom.sk89q.worldedit.extent.Extent
-
getBlock
public com.sk89q.worldedit.world.block.BlockState getBlock(com.sk89q.worldedit.math.BlockVector3 position) - Specified by:
getBlock
in interfacecom.sk89q.worldedit.extent.InputExtent
-
getFullBlock
public com.sk89q.worldedit.world.block.BaseBlock getFullBlock(com.sk89q.worldedit.math.BlockVector3 position) - Specified by:
getFullBlock
in interfacecom.sk89q.worldedit.extent.InputExtent
-
getBiome
public com.sk89q.worldedit.world.biome.BiomeType getBiome(com.sk89q.worldedit.math.BlockVector3 position) - Specified by:
getBiome
in interfacecom.sk89q.worldedit.extent.InputExtent
-
setBiome
public boolean setBiome(com.sk89q.worldedit.math.BlockVector3 position, com.sk89q.worldedit.world.biome.BiomeType biome) - Specified by:
setBiome
in interfacecom.sk89q.worldedit.extent.OutputExtent
-
getRegion
public com.sk89q.worldedit.regions.Region getRegion()- Specified by:
getRegion
in interfacecom.sk89q.worldedit.extent.clipboard.Clipboard
-
getDimensions
public com.sk89q.worldedit.math.BlockVector3 getDimensions()- Specified by:
getDimensions
in interfacecom.sk89q.worldedit.extent.clipboard.Clipboard
-
getOrigin
public com.sk89q.worldedit.math.BlockVector3 getOrigin()- Specified by:
getOrigin
in interfacecom.sk89q.worldedit.extent.clipboard.Clipboard
-
setOrigin
public void setOrigin(com.sk89q.worldedit.math.BlockVector3 origin) - Specified by:
setOrigin
in interfacecom.sk89q.worldedit.extent.clipboard.Clipboard
-
hasBiomes
public boolean hasBiomes()- Specified by:
hasBiomes
in interfacecom.sk89q.worldedit.extent.clipboard.Clipboard
-
getMaximumPoint
public com.sk89q.worldedit.math.BlockVector3 getMaximumPoint()- Specified by:
getMaximumPoint
in interfacecom.sk89q.worldedit.extent.Extent
- Overrides:
getMaximumPoint
in classcom.sk89q.worldedit.world.AbstractWorld
-
getMinimumPoint
public com.sk89q.worldedit.math.BlockVector3 getMinimumPoint()- Specified by:
getMinimumPoint
in interfacecom.sk89q.worldedit.extent.Extent
- Overrides:
getMinimumPoint
in classcom.sk89q.worldedit.world.AbstractWorld
-
save
public void save(boolean force) Description copied from interface:CLIWorld
Saves this world back to file if dirty or forced. -
isDirty
public boolean isDirty()Description copied from interface:CLIWorld
Gets whether the world is dirty. -
setDirty
public void setDirty(boolean dirty) Description copied from interface:CLIWorld
Set the world's dirty status.
-