public class BiomeChange3D extends java.lang.Object implements Change
This biome change does not have an Extent
assigned to it because
one will be taken from the passed UndoContext
. If the context
does not have an extent (it is null), cryptic errors may occur.
Constructor and Description |
---|
BiomeChange3D(BlockVector3 position,
BiomeType previous,
BiomeType current)
Create a new biome change.
|
Modifier and Type | Method and Description |
---|---|
BiomeType |
getCurrent()
Get the current biome.
|
BlockVector3 |
getPosition()
Get the position.
|
BiomeType |
getPrevious()
Get the previous biome.
|
void |
redo(UndoContext context)
Perform an redo.
|
void |
undo(UndoContext context)
Perform an undo.
|
public BiomeChange3D(BlockVector3 position, BiomeType previous, BiomeType current)
position
- the positionprevious
- the previous biomecurrent
- the current biomepublic BlockVector3 getPosition()
public BiomeType getPrevious()
public BiomeType getCurrent()
public void undo(UndoContext context) throws WorldEditException
Change
ChangeSet.forwardIterator()
.undo
in interface Change
context
- a context for undoWorldEditException
- on an errorpublic void redo(UndoContext context) throws WorldEditException
Change
ChangeSet.backwardIterator()
()}.redo
in interface Change
context
- a context for redoWorldEditException
- on an error