public interface IAction
Every modification made by a command must be registered to the Tweaker with the Tweaker.apply method. This enables CraftTweaker to keep track of actions that have been performed.
There also exist semi-permanent actions. Those actions can return an override key; if a newer action has the same override key as an old action, the new action is considered to override the old one.
Likewise, actions can implement hashCode and equals methods to indicate that they are equal. If an action is equal to a non-undoable stuck action, it will be omitted from execution.
Modifier and Type | Method and Description |
---|---|
void |
apply()
Executes what the action is supposed to do.
|
java.lang.String |
describe()
Describes, in a single human-readable sentence, what this specific action
is doing.
|
void apply()
java.lang.String describe()
Try to be as descriptive as possible without being too verbose.
Examples: - Adding Peach planks to the woodPlanks ore dictionary entry - Removing a recipe for Iron Ore