-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added @dummy command for testing purposes
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/main/java/adris/altoclef/commands/random/DummyTaskCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package adris.altoclef.commands.random; | ||
|
||
import adris.altoclef.AltoClef; | ||
import adris.altoclef.commandsystem.ArgBase; | ||
import adris.altoclef.commandsystem.ArgParser; | ||
import adris.altoclef.commandsystem.Command; | ||
import adris.altoclef.commandsystem.CommandException; | ||
import adris.altoclef.tasks.speedrun.OneCycleTask; | ||
import adris.altoclef.tasksystem.Task; | ||
|
||
public class DummyTaskCommand extends Command { | ||
public DummyTaskCommand() { | ||
super("dummy", "Doesnt do anything"); | ||
} | ||
|
||
@Override | ||
protected void call(AltoClef mod, ArgParser parser) throws CommandException { | ||
mod.runUserTask(new DummyTask(), this::finish); | ||
} | ||
|
||
private class DummyTask extends Task { | ||
|
||
@Override | ||
protected void onStart(AltoClef mod) { | ||
|
||
} | ||
|
||
@Override | ||
protected Task onTick(AltoClef mod) { | ||
return null; | ||
} | ||
|
||
@Override | ||
protected void onStop(AltoClef mod, Task interruptTask) { | ||
|
||
} | ||
|
||
@Override | ||
protected boolean isEqual(Task other) { | ||
return false; | ||
} | ||
|
||
@Override | ||
protected String toDebugString() { | ||
return null; | ||
} | ||
} | ||
} |