EditSessionBuilder
,
which in most cases will be as simple as calling builder.world(world).build()
.@Deprecated
public class EditSessionFactory
extends java.lang.Object
EditSession
s. 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 EditSession
s.
Constructor and Description |
---|
EditSessionFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EditSession |
getEditSession(World world,
int maxBlocks)
Deprecated.
Construct an edit session with a maximum number of blocks.
|
EditSession |
getEditSession(World world,
int maxBlocks,
Actor actor)
Deprecated.
Construct an edit session with a maximum number of blocks.
|
EditSession |
getEditSession(World world,
int maxBlocks,
BlockBag blockBag)
Deprecated.
Construct an edit session with a maximum number of blocks and a block bag.
|
EditSession |
getEditSession(World world,
int maxBlocks,
BlockBag blockBag,
Actor actor)
Deprecated.
Construct an edit session with a maximum number of blocks and a block bag.
|
public EditSession getEditSession(World world, int maxBlocks)
world
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitpublic EditSession getEditSession(World world, int maxBlocks, Actor actor)
world
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitactor
- the actor that the EditSession
is forpublic EditSession getEditSession(World world, int maxBlocks, BlockBag blockBag)
world
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitblockBag
- an optional BlockBag
to use, otherwise nullpublic EditSession getEditSession(World world, int maxBlocks, BlockBag blockBag, Actor actor)
world
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitblockBag
- an optional BlockBag
to use, otherwise nullactor
- the actor that the EditSession
is for