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() |
Modifier and Type | Method and Description |
---|---|
EditSession |
getEditSession(LocalWorld world,
int maxBlocks)
Deprecated.
We are replacing
LocalWorld with World , so use getEditSession(World, int) instead |
EditSession |
getEditSession(LocalWorld world,
int maxBlocks,
BlockBag blockBag)
Deprecated.
We are replacing
LocalWorld with World , so use getEditSession(World, int, BlockBag) instead |
EditSession |
getEditSession(LocalWorld world,
int maxBlocks,
BlockBag blockBag,
LocalPlayer player)
Deprecated.
We are replacing
LocalWorld with World , so use getEditSession(World, int, BlockBag, Player) instead |
EditSession |
getEditSession(LocalWorld world,
int maxBlocks,
LocalPlayer player)
Deprecated.
We are replacing
LocalWorld with World , so use getEditSession(World, int, Player) instead |
EditSession |
getEditSession(World world,
int maxBlocks)
Construct an edit session with a maximum number of blocks.
|
EditSession |
getEditSession(World world,
int maxBlocks,
BlockBag blockBag)
Construct an edit session with a maximum number of blocks and a block bag.
|
EditSession |
getEditSession(World world,
int maxBlocks,
BlockBag blockBag,
Player player)
Construct an edit session with a maximum number of blocks and a block bag.
|
EditSession |
getEditSession(World world,
int maxBlocks,
Player player)
Construct an edit session with a maximum number of blocks.
|
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, Player player)
world
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitplayer
- the player 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, Player player)
world
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitblockBag
- an optional BlockBag
to use, otherwise nullplayer
- the player that the EditSession
is for@Deprecated public EditSession getEditSession(LocalWorld world, int maxBlocks)
LocalWorld
with World
, so use getEditSession(World, int)
insteadworld
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limit@Deprecated public EditSession getEditSession(LocalWorld world, int maxBlocks, LocalPlayer player)
LocalWorld
with World
, so use getEditSession(World, int, Player)
insteadworld
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitplayer
- the player that the EditSession
is for@Deprecated public EditSession getEditSession(LocalWorld world, int maxBlocks, BlockBag blockBag)
LocalWorld
with World
, so use getEditSession(World, int, BlockBag)
insteadworld
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitblockBag
- an optional BlockBag
to use, otherwise null@Deprecated public EditSession getEditSession(LocalWorld world, int maxBlocks, BlockBag blockBag, LocalPlayer player)
LocalWorld
with World
, so use getEditSession(World, int, BlockBag, Player)
insteadworld
- the worldmaxBlocks
- the maximum number of blocks that can be changed, or -1 to use no limitblockBag
- an optional BlockBag
to use, otherwise nullplayer
- the player that the EditSession
is for