Skip navigation links
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Packages
  • Interfaces
  • Classes
  • Exceptions
  • Fields
  • Methods
  • Constructors
  • Deprecated Packages
    Package
    Description
    com.sk89q.minecraft.util.commands
  • Deprecated Interfaces
    Interface
    Description
    com.sk89q.worldedit.world.biome.BiomeData
    This no longer returns useful information.
  • Deprecated Classes
    Class
    Description
    com.sk89q.minecraft.util.commands.CommandsManager
    com.sk89q.worldedit.EditSessionFactory
    Using the ever-extending factory methods is deprecated. Replace with EditSessionBuilder, which in most cases will be as simple as calling builder.world(world).build().
    com.sk89q.worldedit.extent.world.BlockQuirkExtent
    Handled by the world entirely now
    com.sk89q.worldedit.function.factory.Apply
    Use ApplyRegion or ApplyLayer depending on function type.
    com.sk89q.worldedit.function.mask.BiomeMask2D
    use BiomeMask as biomes are now 3D.
    com.sk89q.worldedit.function.mask.OffsetMask
    Use OffsetsMask.single(com.sk89q.worldedit.function.mask.Mask, com.sk89q.worldedit.math.BlockVector3)
    com.sk89q.worldedit.function.mask.OffsetMask2D
    Use OffsetsMask2D.single(com.sk89q.worldedit.function.mask.Mask2D, com.sk89q.worldedit.math.BlockVector2)
    com.sk89q.worldedit.function.pattern.BlockPattern
    all BlockStateHolders can be used directly as a pattern
    com.sk89q.worldedit.history.change.BiomeChange
    use BiomeChange3D
    com.sk89q.worldedit.world.biome.Biomes
    Only method is being deprecated for removal.
  • Deprecated Exceptions
    Exceptions
    Description
    com.sk89q.worldedit.DisallowedItemException
    Use DisallowedUsageException
    com.sk89q.worldedit.InvalidItemException
    com.sk89q.worldedit.UnknownItemException
  • Deprecated Fields
    Field
    Description
    com.sk89q.worldedit.antlr.ExpressionLexer.tokenNames
    Use ExpressionLexer.VOCABULARY instead.
    com.sk89q.worldedit.antlr.ExpressionParser.tokenNames
    Use ExpressionParser.VOCABULARY instead.
    com.sk89q.worldedit.world.biome.BiomeTypes.NETHER
    com.sk89q.worldedit.world.block.BlockCategories.DIRT_LIKE
    com.sk89q.worldedit.world.block.BlockTypes.GRASS_PATH
    com.sk89q.worldedit.world.block.BlockTypes.SIGN
    com.sk89q.worldedit.world.block.BlockTypes.WALL_SIGN
    com.sk89q.worldedit.world.entity.EntityTypes.ZOMBIE_PIGMAN
    com.sk89q.worldedit.world.item.ItemCategories.FURNACE_MATERIALS
    com.sk89q.worldedit.world.item.ItemTypes.CACTUS_GREEN
    com.sk89q.worldedit.world.item.ItemTypes.DANDELION_YELLOW
    com.sk89q.worldedit.world.item.ItemTypes.GRASS_PATH
    com.sk89q.worldedit.world.item.ItemTypes.ROSE_RED
    com.sk89q.worldedit.world.item.ItemTypes.SIGN
    com.sk89q.worldedit.world.item.ItemTypes.ZOMBIE_PIGMAN_SPAWN_EGG
  • Deprecated Methods
    Method
    Description
    com.sk89q.worldedit.antlr.ExpressionLexer.getTokenNames()
    com.sk89q.worldedit.antlr.ExpressionParser.getTokenNames()
    com.sk89q.worldedit.command.tool.BlockTool.actPrimary(Platform, LocalConfiguration, Player, LocalSession, Location)
    New subclasses should override BlockTool.actPrimary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction) instead
    com.sk89q.worldedit.command.tool.DoubleActionBlockTool.actSecondary(Platform, LocalConfiguration, Player, LocalSession, Location)
    New subclasses must override DoubleActionBlockTool.actSecondary(Platform, LocalConfiguration, Player, LocalSession, Location, Direction) instead
    com.sk89q.worldedit.command.util.AsyncCommandBuilder.sendMessageAfterDelay(Component)
    com.sk89q.worldedit.command.util.AsyncCommandBuilder.sendMessageAfterDelay(String)
    com.sk89q.worldedit.command.util.FutureProgressListener.addProgressListener(ListenableFuture<?>, Actor, String)
    com.sk89q.worldedit.command.util.WorldEditAsyncCommandBuilder.createAndSendMessage(Actor, Callable<Component>, String)
    com.sk89q.worldedit.EditSession.disableQueue()
    Use EditSession.setReorderMode(ReorderMode) with another mode instead.
    com.sk89q.worldedit.EditSession.enableQueue()
    Use EditSession.setReorderMode(ReorderMode) with MULTI_STAGE instead.
    com.sk89q.worldedit.EditSession.flushSession()
    Replace with EditSession.close() for proper cleanup behavior.
    com.sk89q.worldedit.EditSession.green(BlockVector3, double, boolean)
    Use EditSession.green(BlockVector3, double, int, boolean).
    com.sk89q.worldedit.EditSession.hasFastMode()
    com.sk89q.worldedit.EditSession.isQueueEnabled()
    Use EditSession.getReorderMode() with MULTI_STAGE instead.
    com.sk89q.worldedit.EditSession.makeCuboidFaces(Region, B)
    Use EditSession.makeCuboidFaces(Region, Pattern).
    com.sk89q.worldedit.EditSession.overlayCuboidBlocks(Region, B)
    Use EditSession.overlayCuboidBlocks(Region, Pattern).
    com.sk89q.worldedit.EditSession.setFastMode(boolean)
    com.sk89q.worldedit.EditSession.simulateSnow(BlockVector3, double)
    Use EditSession.simulateSnow(BlockVector3, double, int).
    com.sk89q.worldedit.EditSession.thaw(BlockVector3, double)
    Use EditSession.thaw(BlockVector3, double, int).
    com.sk89q.worldedit.entity.Player.getBlockIn()
    Use Locatable#getBlockLocation
    com.sk89q.worldedit.entity.Player.setPosition(Vector3, float, float)
    This method may fail without indication. Use Player.trySetPosition(Vector3, float, float) instead
    com.sk89q.worldedit.extension.platform.Actor.print(String)
    Use component-based functions (printInfo)
    com.sk89q.worldedit.extension.platform.Actor.printDebug(String)
    Use component-based functions (printDebug)
    com.sk89q.worldedit.extension.platform.Actor.printError(String)
    Use component-based functions (printError)
    com.sk89q.worldedit.extension.platform.Actor.printRaw(String)
    Use component-based functions (print)
    com.sk89q.worldedit.extension.platform.Locatable.setPosition(Vector3)
    This method may fail without indication. Use Locatable.trySetPosition(Vector3) instead
    com.sk89q.worldedit.extension.platform.Platform.registerGameHooks()
    Call Platform.setGameHooksEnabled(boolean) with true instead
    com.sk89q.worldedit.extension.platform.PlatformManager.handlePlatformReady(PlatformReadyEvent)
    com.sk89q.worldedit.extent.AbstractBufferingExtent.getBufferedBlock(BlockVector3)
    New subclasses should override AbstractBufferingExtent.getBufferedFullBlock(BlockVector3) instead
    com.sk89q.worldedit.extent.InputExtent.getBiome(BlockVector2)
    Biomes in Minecraft are 3D now, use InputExtent.getBiome(BlockVector3)
    com.sk89q.worldedit.extent.OutputExtent.setBiome(BlockVector2, BiomeType)
    Biomes in Minecraft are 3D now, use OutputExtent.setBiome(BlockVector3, BiomeType)
    com.sk89q.worldedit.function.biome.BiomeReplace.apply(BlockVector2)
    com.sk89q.worldedit.function.biome.ExtentBiomeCopy.apply(BlockVector2)
    com.sk89q.worldedit.function.operation.Operation.addStatusMessages(List<String>)
    Will be removed in WorldEdit 8.0 - use the Component variant
    com.sk89q.worldedit.function.pattern.BiomePattern.apply(BlockVector2)
    use BiomePattern.applyBiome(BlockVector3)
    com.sk89q.worldedit.function.pattern.Pattern.apply(BlockVector3)
    use Pattern.applyBlock(BlockVector3)
    com.sk89q.worldedit.internal.command.exception.WorldEditExceptionConverter.convert(InvalidItemException)
    com.sk89q.worldedit.LocalConfiguration.getWorkingDirectory()
    Use LocalConfiguration.getWorkingDirectoryPath()
    com.sk89q.worldedit.LocalSession.hasFastMode()
    com.sk89q.worldedit.LocalSession.isToolControlEnabled()
    The wand is now a tool that can be bound/unbound.
    com.sk89q.worldedit.LocalSession.setFastMode(boolean)
    com.sk89q.worldedit.LocalSession.setToolControl(boolean)
    The wand is now a tool that can be bound/unbound.
    com.sk89q.worldedit.regions.Region.getArea()
    use Region.getVolume() to prevent overflows
    com.sk89q.worldedit.regions.RegionSelector.getArea()
    use RegionSelector.getVolume()
    com.sk89q.worldedit.regions.RegionSelector.getInformationLines()
    com.sk89q.worldedit.util.formatting.component.CommandListBox.appendCommand(String, String, String)
    com.sk89q.worldedit.util.paste.ActorCallbackPaste.pastebin(Supervisor, Actor, String, String)
    Use the Component-based version
    com.sk89q.worldedit.world.biome.BiomeData.getName()
    This method does not work on the server. Use BiomeRegistry.getRichName(BiomeType).
    com.sk89q.worldedit.world.biome.Biomes.findBiomeByName(Collection<BiomeType>, String, BiomeRegistry)
    This uses the outdated name system. Find names by comparing with their ID instead.
    com.sk89q.worldedit.world.block.BlockType.getLegacyData()
    com.sk89q.worldedit.world.block.BlockType.getLegacyId()
    com.sk89q.worldedit.world.block.BlockType.getName()
    The name is now translatable, use BlockType.getRichName().
    com.sk89q.worldedit.world.item.ItemType.getName()
    Names are translatable now, use ItemType.getRichName().
    com.sk89q.worldedit.world.registry.BiomeRegistry.getData(BiomeType)
    This method no longer returns any useful information. Use BiomeRegistry.getRichName(BiomeType) for the name of the biome.
    com.sk89q.worldedit.world.registry.BlockRegistry.getName(BlockType)
    Names are now translatable, use BlockRegistry.getRichName(BlockType).
    com.sk89q.worldedit.world.registry.BundledBlockRegistry.getName(BlockType)
    com.sk89q.worldedit.world.registry.BundledItemRegistry.getName(ItemType)
    com.sk89q.worldedit.world.registry.ItemRegistry.getName(ItemType)
    Names are now translatable, use ItemRegistry.getRichName(ItemType).
    com.sk89q.worldedit.world.registry.NullBiomeRegistry.getData(BiomeType)
    com.sk89q.worldedit.world.World.notifyAndLightBlock(BlockVector3, BlockState)
    com.sk89q.worldedit.world.World.setBlock(BlockVector3, B, boolean)
    com.sk89q.worldedit.WorldEdit.getEditSessionFactory()
    Use WorldEdit.newEditSessionBuilder() instead. See EditSessionFactory for details.
    com.sk89q.worldedit.WorldEdit.getWorkingDirectoryFile(String)
    Use WorldEdit.getWorkingDirectoryPath(String) instead
    com.sk89q.worldedit.WorldEdit.handleBlockLeftClick(Player, Location)
    com.sk89q.worldedit.WorldEdit.handleBlockRightClick(Player, Location)
  • Deprecated Constructors
    Constructor
    Description
    com.sk89q.worldedit.command.InsufficientArgumentsException(String)
    com.sk89q.worldedit.command.tool.InvalidToolBindException(ItemType, String)
    com.sk89q.worldedit.command.util.FutureProgressListener(Actor, String)
    com.sk89q.worldedit.event.platform.BlockInteractEvent(Actor, Location, Interaction)
    com.sk89q.worldedit.extension.input.DisallowedUsageException(String)
    com.sk89q.worldedit.extension.input.DisallowedUsageException(String, Throwable)
    com.sk89q.worldedit.extension.input.InputParseException(String)
    com.sk89q.worldedit.extension.input.InputParseException(String, Throwable)
    com.sk89q.worldedit.extension.input.NoMatchException(String)
    com.sk89q.worldedit.extension.input.NoMatchException(String, Throwable)
    com.sk89q.worldedit.function.biome.ExtentBiomeCopy(Extent, BlockVector2, Extent, BlockVector2, Transform)
    use ExtentBiomeCopy(Extent, BlockVector3, Extent, BlockVector3, Transform)
    com.sk89q.worldedit.internal.cui.SelectionPoint2DEvent(int, BlockVector2, int)
    com.sk89q.worldedit.internal.cui.SelectionPoint2DEvent(int, BlockVector3, int)
    com.sk89q.worldedit.internal.cui.SelectionPointEvent(int, BlockVector3, int)
    com.sk89q.worldedit.NotABlockException(int)
    com.sk89q.worldedit.NotABlockException(String)
    com.sk89q.worldedit.regions.RegionOperationException(String)
    com.sk89q.worldedit.util.auth.AuthorizationException(String)
    com.sk89q.worldedit.util.auth.AuthorizationException(String, Throwable)
    com.sk89q.worldedit.util.formatting.component.InvalidComponentException(String)
    com.sk89q.worldedit.util.io.file.FilenameException(String, String)
    com.sk89q.worldedit.util.io.file.FilenameResolutionException(String, String)
    com.sk89q.worldedit.util.io.file.FileSelectionAbortedException(String)
    com.sk89q.worldedit.util.io.file.InvalidFilenameException(String, String)
    com.sk89q.worldedit.util.PropertiesConfiguration(File)
    Use PropertiesConfiguration(Path)
    com.sk89q.worldedit.WorldEditException(String)
    Use component version
    com.sk89q.worldedit.WorldEditException(String, Throwable)
    Use component version