Class BlockBagChangeSet
java.lang.Object
com.fastasyncworldedit.core.history.changeset.AbstractChangeSet
com.fastasyncworldedit.core.history.changeset.AbstractDelegateChangeSet
com.fastasyncworldedit.core.history.changeset.BlockBagChangeSet
- All Implemented Interfaces:
IBatchProcessor
,ChangeSet
,Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class com.fastasyncworldedit.core.history.changeset.AbstractDelegateChangeSet
parent
Fields inherited from class com.fastasyncworldedit.core.history.changeset.AbstractChangeSet
closed, waitingAsync, waitingCombined
-
Constructor Summary
ConstructorDescriptionBlockBagChangeSet
(AbstractChangeSet parent, BlockBag blockBag, boolean mine) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int x, int y, int z, int combinedFrom, int combinedTo) void
void
add
(BlockVector3 loc, BaseBlock from, BaseBlock to) void
addTileCreate
(CompoundTag nbt) void
Get the block bag.Gets the list of missing blocks and clears the list for the next operation.void
setBlockBag
(BlockBag blockBag) Set the block bag.Methods inherited from class com.fastasyncworldedit.core.history.changeset.AbstractDelegateChangeSet
add, add, add, add, add, addBiomeChange, addEntityCreate, addEntityRemove, addTileRemove, addWriteTask, addWriteTask, backwardIterator, close, closeAsync, delete, flush, forwardIterator, getIterator, getIterator, getParent, getWorld, isEmpty, isRecordingChanges, setRecordChanges, size, summarize, toEditSession, toEditSession
Methods inherited from class com.fastasyncworldedit.core.history.changeset.AbstractChangeSet
construct, getScope, postProcess, postProcessSet, processSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.IBatchProcessor
join, joinPost, processGet, remove, trimNBT, trimY
-
Constructor Details
-
BlockBagChangeSet
-
-
Method Details
-
getBlockBag
Get the block bag.- Returns:
- a block bag, which may be null if none is used
-
setBlockBag
Set the block bag.- Parameters:
blockBag
- a block bag, which may be null if none is used
-
popMissing
Gets the list of missing blocks and clears the list for the next operation.- Returns:
- a map of missing blocks
-
add
- Overrides:
add
in classAbstractDelegateChangeSet
-
add
- Overrides:
add
in classAbstractDelegateChangeSet
-
check
-
add
public void add(int x, int y, int z, int combinedFrom, int combinedTo) - Overrides:
add
in classAbstractDelegateChangeSet
-
addTileCreate
- Overrides:
addTileCreate
in classAbstractDelegateChangeSet
-