public final class EditSessionBuilder
extends java.lang.Object
EditSessions
.Modifier and Type | Method and Description |
---|---|
EditSessionBuilder |
actor(Actor actor)
Set the actor who owns the
EditSession . |
EditSessionBuilder |
blockBag(BlockBag blockBag)
Set the block bag for the
EditSession . |
EditSession |
build()
Build the
EditSession using properties described in this builder. |
Actor |
getActor() |
BlockBag |
getBlockBag() |
int |
getMaxBlocks() |
World |
getWorld() |
boolean |
isTracing()
Check if tracing is enabled.
|
<A extends Actor & Locatable> |
locatableActor(A locatable) |
EditSessionBuilder |
maxBlocks(int maxBlocks)
Set the maximum blocks to change for the
EditSession . |
EditSessionBuilder |
tracing(boolean tracing)
Set tracing enabled/disabled.
|
EditSessionBuilder |
world(World world)
Set the world for the
EditSession . |
@Nullable public World getWorld()
public EditSessionBuilder world(@Nullable World world)
EditSession
.world
- the worldpublic int getMaxBlocks()
public EditSessionBuilder maxBlocks(int maxBlocks)
EditSession
.maxBlocks
- the maximum blocks to change@Nullable public Actor getActor()
public EditSessionBuilder actor(@Nullable Actor actor)
EditSession
.actor
- the actor@Nullable public BlockBag getBlockBag()
public EditSessionBuilder blockBag(@Nullable BlockBag blockBag)
EditSession
.blockBag
- the block bagpublic boolean isTracing()
public EditSessionBuilder tracing(boolean tracing)
public <A extends Actor & Locatable> EditSessionBuilder locatableActor(A locatable)
public EditSession build()
EditSession
using properties described in this builder.