Class BiomeChange3D
java.lang.Object
com.sk89q.worldedit.history.change.BiomeChange3D
- All Implemented Interfaces:
Change
Represents a biome change that may be undone or replayed.
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 Summary
ConstructorDescriptionBiomeChange3D
(BlockVector3 position, BiomeType previous, BiomeType current) Create a new biome change. -
Method Summary
Modifier and TypeMethodDescriptionGet the current biome.Get the position.Get the previous biome.void
redo
(UndoContext context) Perform an redo.void
undo
(UndoContext context) Perform an undo.
-
Constructor Details
-
BiomeChange3D
Create a new biome change.- Parameters:
position
- the positionprevious
- the previous biomecurrent
- the current biome
-
-
Method Details
-
getPosition
Get the position.- Returns:
- the position
-
getPrevious
Get the previous biome.- Returns:
- the previous biome
-
getCurrent
Get the current biome.- Returns:
- the current biome
-
undo
Description copied from interface:Change
Perform an undo. This method may not be available if the object was returned fromChangeSet.forwardIterator()
.- Specified by:
undo
in interfaceChange
- Parameters:
context
- a context for undo- Throws:
WorldEditException
- on an error
-
redo
Description copied from interface:Change
Perform an redo. This method may not be available if the object was returned fromChangeSet.backwardIterator()
()}.- Specified by:
redo
in interfaceChange
- Parameters:
context
- a context for redo- Throws:
WorldEditException
- on an error
-