public class BiomeChange 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 |
---|
BiomeChange(BlockVector2 position,
BaseBiome previous,
BaseBiome current)
Create a new biome change.
|
Modifier and Type | Method and Description |
---|---|
BaseBiome |
getCurrent()
Get the current biome.
|
BlockVector2 |
getPosition()
Get the position.
|
BaseBiome |
getPrevious()
Get the previous biome.
|
void |
redo(UndoContext context)
Perform an redo.
|
void |
undo(UndoContext context)
Perform an undo.
|
public BiomeChange(BlockVector2 position, BaseBiome previous, BaseBiome current)
position
- the positionprevious
- the previous biomecurrent
- the current biomepublic BlockVector2 getPosition()
public BaseBiome getPrevious()
public BaseBiome 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