Class BiomeChange
java.lang.Object
com.sk89q.worldedit.history.change.BiomeChange
- All Implemented Interfaces:
Change
Deprecated.
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
ConstructorDescriptionBiomeChange
(BlockVector2 position, BiomeType previous, BiomeType current) Deprecated.Create a new biome change. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Get the current biome.Deprecated.Get the position.Deprecated.Get the previous biome.void
redo
(UndoContext context) Deprecated.Perform an redo.void
undo
(UndoContext context) Deprecated.Perform an undo.
-
Constructor Details
-
BiomeChange
Deprecated.Create a new biome change.- Parameters:
position
- the positionprevious
- the previous biomecurrent
- the current biome
-
-
Method Details
-
getPosition
Deprecated.Get the position.- Returns:
- the position
-
getPrevious
Deprecated.Get the previous biome.- Returns:
- the previous biome
-
getCurrent
Deprecated.Get the current biome.- Returns:
- the current biome
-
undo
Deprecated.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
Deprecated.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
-
BiomeChange3D