Package com.sk89q.worldedit
Class EditSessionBuilder
java.lang.Object
com.sk89q.worldedit.EditSessionBuilder
A builder-style factory for
EditSessions
.-
Method Summary
Modifier and TypeMethodDescriptionSet the actor who owns theEditSession
.Set the block bag for theEditSession
.build()
Build theEditSession
using properties described in this builder.getActor()
int
getWorld()
boolean
Check if tracing is enabled.<A extends Actor & Locatable>
EditSessionBuilderlocatableActor
(A locatable) maxBlocks
(int maxBlocks) Set the maximum blocks to change for theEditSession
.tracing
(boolean tracing) Set tracing enabled/disabled.Set the world for theEditSession
.
-
Method Details
-
getWorld
-
world
Set the world for theEditSession
.- Parameters:
world
- the world- Returns:
- this builder
-
getMaxBlocks
public int getMaxBlocks() -
maxBlocks
Set the maximum blocks to change for theEditSession
.- Parameters:
maxBlocks
- the maximum blocks to change- Returns:
- this builder
-
getActor
-
actor
Set the actor who owns theEditSession
.- Parameters:
actor
- the actor- Returns:
- this builder
-
getBlockBag
-
blockBag
Set the block bag for theEditSession
.- Parameters:
blockBag
- the block bag- Returns:
- this builder
-
isTracing
public boolean isTracing()Check if tracing is enabled. Internal use only. -
tracing
Set tracing enabled/disabled. Internal use only. -
locatableActor
-
build
Build theEditSession
using properties described in this builder.- Returns:
- the new EditSession
-