mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-14 16:33:33 +00:00
29 lines
712 B
Java
29 lines
712 B
Java
|
package com.sk89q.worldedit;
|
||
|
|
||
|
import com.sk89q.worldedit.bags.BlockBag;
|
||
|
|
||
|
public class EditSessionFactory {
|
||
|
|
||
|
/**
|
||
|
* 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);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 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);
|
||
|
}
|
||
|
|
||
|
}
|