Class NullChangeSet
java.lang.Object
com.fastasyncworldedit.core.history.changeset.AbstractChangeSet
com.fastasyncworldedit.core.history.changeset.NullChangeSet
- All Implemented Interfaces:
IBatchProcessor
,ChangeSet
,Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class com.fastasyncworldedit.core.history.changeset.AbstractChangeSet
closed, waitingAsync, waitingCombined
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
add
(int x, int y, int z, int combinedFrom, int combinedTo) void
addBiomeChange
(int x, int y, int z, BiomeType from, BiomeType to) final void
final void
final void
addTileCreate
(CompoundTag tag) final void
addTileRemove
(CompoundTag tag) final void
close()
Close the changeset.getIterator
(boolean undo) getIterator
(BlockBag blockBag, int mode, boolean redo) boolean
Whether or not the ChangeSet is recording changes.void
setRecordChanges
(boolean recordChanges) Tell the change set whether to record changes or not.final int
size()
Get the number of stored changes.Methods inherited from class com.fastasyncworldedit.core.history.changeset.AbstractChangeSet
add, add, add, add, add, add, add, addWriteTask, addWriteTask, backwardIterator, closeAsync, construct, flush, forwardIterator, getScope, getWorld, isEmpty, postProcess, postProcessSet, processSet, toEditSession, toEditSession
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
-
NullChangeSet
-
-
Method Details
-
close
public final void close()Description copied from interface:ChangeSet
Close the changeset.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChangeSet
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractChangeSet
-
add
public final void add(int x, int y, int z, int combinedFrom, int combinedTo) - Specified by:
add
in classAbstractChangeSet
-
addTileCreate
- Specified by:
addTileCreate
in classAbstractChangeSet
-
addTileRemove
- Specified by:
addTileRemove
in classAbstractChangeSet
-
addEntityRemove
- Specified by:
addEntityRemove
in classAbstractChangeSet
-
addEntityCreate
- Specified by:
addEntityCreate
in classAbstractChangeSet
-
addBiomeChange
- Specified by:
addBiomeChange
in classAbstractChangeSet
-
getIterator
- Overrides:
getIterator
in classAbstractChangeSet
-
getIterator
- Specified by:
getIterator
in classAbstractChangeSet
-
size
public final int size()Description copied from interface:ChangeSet
Get the number of stored changes.- Returns:
- the change count
-
isRecordingChanges
public boolean isRecordingChanges()Description copied from interface:ChangeSet
Whether or not the ChangeSet is recording changes.- Returns:
- whether or not the ChangeSet is set to record changes
-
setRecordChanges
public void setRecordChanges(boolean recordChanges) Description copied from interface:ChangeSet
Tell the change set whether to record changes or not.- Parameters:
recordChanges
- whether to record changes or not
-