2012-10-18 10:34:09 +00:00
|
|
|
package com.sk89q.worldedit;
|
|
|
|
|
|
|
|
import com.sk89q.worldedit.bags.BlockBag;
|
|
|
|
|
|
|
|
public class EditSessionFactory {
|
2012-11-13 10:07:08 +00:00
|
|
|
|
2012-10-18 10:34:09 +00:00
|
|
|
/**
|
|
|
|
* Construct an edit session with a maximum number of blocks.
|
|
|
|
*
|
|
|
|
* @param world
|
|
|
|
* @param maxBlocks
|
|
|
|
*/
|
|
|
|
public EditSession getEditSession(LocalWorld world, int maxBlocks) {
|
|
|
|
return new EditSession(world, maxBlocks);
|
|
|
|
}
|
2012-11-13 10:07:08 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Construct an edit session with a maximum number of blocks.
|
|
|
|
*
|
|
|
|
* @param world
|
|
|
|
* @param maxBlocks
|
|
|
|
* @param player
|
|
|
|
*/
|
|
|
|
public EditSession getEditSession(LocalWorld world, int maxBlocks, LocalPlayer player) {
|
|
|
|
return this.getEditSession(world, maxBlocks);
|
|
|
|
}
|
|
|
|
|
2012-10-18 10:34:09 +00:00
|
|
|
/**
|
|
|
|
* Construct an edit session with a maximum number of blocks and a block bag.
|
|
|
|
*
|
|
|
|
* @param world
|
|
|
|
* @param maxBlocks
|
|
|
|
* @param blockBag
|
|
|
|
*/
|
|
|
|
public EditSession getEditSession(LocalWorld world, int maxBlocks, BlockBag blockBag) {
|
|
|
|
return new EditSession(world, maxBlocks, blockBag);
|
|
|
|
}
|
|
|
|
|
2012-11-13 10:07:08 +00:00
|
|
|
/**
|
|
|
|
* Construct an edit session with a maximum number of blocks and a block bag.
|
|
|
|
*
|
|
|
|
* @param world
|
|
|
|
* @param maxBlocks
|
|
|
|
* @param blockBag
|
|
|
|
* @param player
|
|
|
|
*/
|
|
|
|
public EditSession getEditSession(LocalWorld world, int maxBlocks, BlockBag blockBag, LocalPlayer player) {
|
|
|
|
return this.getEditSession(world, maxBlocks, blockBag);
|
|
|
|
}
|
|
|
|
|
2012-10-18 10:34:09 +00:00
|
|
|
}
|