Package com.sk89q.worldedit
Class EditSessionFactory
java.lang.Object
com.sk89q.worldedit.EditSessionFactory
Deprecated.
Creates new
EditSessions. To get an instance of this factory,
use WorldEdit.getEditSessionFactory().
It is no longer possible to replace the instance of this in WorldEdit
with a custom one. Use EditSessionEvent to override
the creation of EditSessions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEditSession(World world, int maxBlocks) Deprecated.Construct an edit session with a maximum number of blocks.getEditSession(World world, int maxBlocks, Actor actor) Deprecated.Construct an edit session with a maximum number of blocks.getEditSession(World world, int maxBlocks, BlockBag blockBag) Deprecated.Construct an edit session with a maximum number of blocks and a block bag.getEditSession(World world, int maxBlocks, BlockBag blockBag, Actor actor) Deprecated.Construct an edit session with a maximum number of blocks and a block bag.
-
Constructor Details
-
EditSessionFactory
public EditSessionFactory()Deprecated.
-
-
Method Details
-
getEditSession
Deprecated.Construct an edit session with a maximum number of blocks.- Parameters:
world- the worldmaxBlocks- the maximum number of blocks that can be changed, or -1 to use no limit- Returns:
- an instance
-
getEditSession
Deprecated.Construct an edit session with a maximum number of blocks.- Parameters:
world- the worldmaxBlocks- the maximum number of blocks that can be changed, or -1 to use no limitactor- the actor that theEditSessionis for- Returns:
- an instance
-
getEditSession
Deprecated.Construct an edit session with a maximum number of blocks and a block bag.- Parameters:
world- the worldmaxBlocks- the maximum number of blocks that can be changed, or -1 to use no limitblockBag- an optionalBlockBagto use, otherwise null- Returns:
- an instance
-
getEditSession
Deprecated.Construct an edit session with a maximum number of blocks and a block bag.- Parameters:
world- the worldmaxBlocks- the maximum number of blocks that can be changed, or -1 to use no limitblockBag- an optionalBlockBagto use, otherwise nullactor- the actor that theEditSessionis for- Returns:
- an instance
-
EditSessionBuilder, which in most cases will be as simple as callingbuilder.world(world).build().