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

    Constructors
    Constructor
    Description
    ClipboardWorld(File file, com.sk89q.worldedit.extent.clipboard.Clipboard clipboard, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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
     
     
    com.sk89q.worldedit.math.BlockVector3
     
    com.sk89q.worldedit.regions.Region
     
    com.sk89q.worldedit.math.BlockVector3
     
    boolean
     
    id()
     
    boolean
    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>>
    boolean
    setBlock(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

      public ClipboardWorld(File file, com.sk89q.worldedit.extent.clipboard.Clipboard clipboard, String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface com.sk89q.worldedit.world.World
    • id

      public String id()
      Specified by:
      id in interface com.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 interface com.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 interface com.sk89q.worldedit.world.World
      Throws:
      com.sk89q.worldedit.WorldEditException
    • getBlockLightLevel

      public int getBlockLightLevel(com.sk89q.worldedit.math.BlockVector3 position)
      Specified by:
      getBlockLightLevel in interface com.sk89q.worldedit.world.World
    • clearContainerBlockContents

      public boolean clearContainerBlockContents(com.sk89q.worldedit.math.BlockVector3 position)
      Specified by:
      clearContainerBlockContents in interface com.sk89q.worldedit.world.World
    • dropItem

      public void dropItem(com.sk89q.worldedit.math.Vector3 position, com.sk89q.worldedit.blocks.BaseItemStack item)
      Specified by:
      dropItem in interface com.sk89q.worldedit.world.World
    • simulateBlockMine

      public void simulateBlockMine(com.sk89q.worldedit.math.BlockVector3 position)
      Specified by:
      simulateBlockMine in interface com.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 interface com.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 interface com.sk89q.worldedit.world.World
      Throws:
      com.sk89q.worldedit.MaxChangedBlocksException
    • getSpawnPosition

      public com.sk89q.worldedit.math.BlockVector3 getSpawnPosition()
      Specified by:
      getSpawnPosition in interface com.sk89q.worldedit.world.World
    • getEntities

      public List<? extends com.sk89q.worldedit.entity.Entity> getEntities(com.sk89q.worldedit.regions.Region region)
      Specified by:
      getEntities in interface com.sk89q.worldedit.extent.Extent
    • getEntities

      public List<? extends com.sk89q.worldedit.entity.Entity> getEntities()
      Specified by:
      getEntities in interface com.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 interface com.sk89q.worldedit.extent.Extent
    • getBlock

      public com.sk89q.worldedit.world.block.BlockState getBlock(com.sk89q.worldedit.math.BlockVector3 position)
      Specified by:
      getBlock in interface com.sk89q.worldedit.extent.InputExtent
    • getFullBlock

      public com.sk89q.worldedit.world.block.BaseBlock getFullBlock(com.sk89q.worldedit.math.BlockVector3 position)
      Specified by:
      getFullBlock in interface com.sk89q.worldedit.extent.InputExtent
    • getBiome

      public com.sk89q.worldedit.world.biome.BiomeType getBiome(com.sk89q.worldedit.math.BlockVector3 position)
      Specified by:
      getBiome in interface com.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 interface com.sk89q.worldedit.extent.OutputExtent
    • getRegion

      public com.sk89q.worldedit.regions.Region getRegion()
      Specified by:
      getRegion in interface com.sk89q.worldedit.extent.clipboard.Clipboard
    • getDimensions

      public com.sk89q.worldedit.math.BlockVector3 getDimensions()
      Specified by:
      getDimensions in interface com.sk89q.worldedit.extent.clipboard.Clipboard
    • getOrigin

      public com.sk89q.worldedit.math.BlockVector3 getOrigin()
      Specified by:
      getOrigin in interface com.sk89q.worldedit.extent.clipboard.Clipboard
    • setOrigin

      public void setOrigin(com.sk89q.worldedit.math.BlockVector3 origin)
      Specified by:
      setOrigin in interface com.sk89q.worldedit.extent.clipboard.Clipboard
    • hasBiomes

      public boolean hasBiomes()
      Specified by:
      hasBiomes in interface com.sk89q.worldedit.extent.clipboard.Clipboard
    • getMaximumPoint

      public com.sk89q.worldedit.math.BlockVector3 getMaximumPoint()
      Specified by:
      getMaximumPoint in interface com.sk89q.worldedit.extent.Extent
      Overrides:
      getMaximumPoint in class com.sk89q.worldedit.world.AbstractWorld
    • getMinimumPoint

      public com.sk89q.worldedit.math.BlockVector3 getMinimumPoint()
      Specified by:
      getMinimumPoint in interface com.sk89q.worldedit.extent.Extent
      Overrides:
      getMinimumPoint in class com.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.
      Specified by:
      save in interface CLIWorld
      Parameters:
      force - Force a save
    • isDirty

      public boolean isDirty()
      Description copied from interface: CLIWorld
      Gets whether the world is dirty.
      Specified by:
      isDirty in interface CLIWorld
      Returns:
      If it's dirty
    • setDirty

      public void setDirty(boolean dirty)
      Description copied from interface: CLIWorld
      Set the world's dirty status.
      Specified by:
      setDirty in interface CLIWorld
      Parameters:
      dirty - if dirty