-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Zffu/feat/arg-merge
[feat] Arguments reimplementation
- Loading branch information
Showing
11 changed files
with
87 additions
and
66 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
2 changes: 0 additions & 2 deletions
2
api-examples/src/main/java/net/zffu/hardened/examples/api/BuilderCommandExample.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
29 changes: 0 additions & 29 deletions
29
api/src/main/java/net/zffu/hardened/api/args/ArgumentTypes.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
api/src/main/java/net/zffu/hardened/api/args/Arguments.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,28 @@ | ||
package net.zffu.hardened.api.args; | ||
|
||
import net.zffu.hardened.api.args.types.IntegerArgument; | ||
import net.zffu.hardened.api.args.types.StringArgument; | ||
|
||
/** | ||
* Useful class to generate {@link Argument} instances faster. | ||
* @since 1.0.0 | ||
* @see {@link Argument} | ||
*/ | ||
public class Arguments { | ||
|
||
/** | ||
* Gets a simple integer argument. | ||
* @return | ||
*/ | ||
public static IntegerArgument integer() { | ||
return new IntegerArgument(); | ||
} | ||
|
||
/** | ||
* Gets a simple string argument. | ||
* @return | ||
*/ | ||
public static StringArgument string() { | ||
return new StringArgument(); | ||
} | ||
} |
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
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
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
20 changes: 0 additions & 20 deletions
20
api/src/main/java/net/zffu/hardened/api/commands/types/ArgCommand.java
This file was deleted.
Oops, something went wrong.
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
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
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