Class EntityCreate
java.lang.Object
com.sk89q.worldedit.history.change.EntityCreate
- All Implemented Interfaces:
Change
Logs the creation of an entity and removes the entity upon undo.
-
Constructor Summary
ConstructorDescriptionEntityCreate
(Location location, BaseEntity state, Entity entity) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
redo
(UndoContext context) Perform an redo.void
undo
(UndoContext context) Perform an undo.
-
Constructor Details
-
EntityCreate
Create a new instance.- Parameters:
location
- the locationstate
- the state of the created entityentity
- the entity that was created
-
-
Method Details
-
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
-