| Package | Description |
|---|---|
| com.datasiqn.commandcore.argument | |
| com.datasiqn.commandcore.argument.type | |
| com.datasiqn.commandcore.command.builder |
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
Arguments.get(int i,
ArgumentType<T> type)
Gets a specific argument
|
default <T> T |
Arguments.get(int i,
ArgumentType<T> type)
Gets a specific argument
|
<T> @NotNull com.datasiqn.resultapi.Result<T,String> |
Arguments.getChecked(int i,
ArgumentType<T> type)
Same as
Arguments.get(int, ArgumentType), except checks if there is an error and returns a Result |
<T> @NotNull com.datasiqn.resultapi.Result<T,String> |
StringArguments.getChecked(int i,
@NotNull ArgumentType<T> type) |
<T> @NotNull com.datasiqn.resultapi.Result<T,String> |
StringArguments.getChecked(int i,
@NotNull ArgumentType<T> type) |
<T> @NotNull com.datasiqn.resultapi.Result<T,String> |
Arguments.getChecked(int i,
ArgumentType<T> type)
Same as
Arguments.get(int, ArgumentType), except checks if there is an error and returns a Result |
| Modifier and Type | Interface and Description |
|---|---|
interface |
SimpleArgumentType<T>
Represents an
ArgumentType that just parses a single word |
| Modifier and Type | Class and Description |
|---|---|
static class |
ArgumentType.EnumArgumentType<T extends Enum<T>>
Represents a custom
ArgumentType that parses to an enum value |
static class |
ArgumentType.FilteredEnumArgumentType<T extends Enum<T>>
Represents a custom
ArgumentType that parses to a filtered enum |
| Modifier and Type | Field and Description |
|---|---|
static ArgumentType<org.bukkit.Material> |
ArgumentType.BLOCK
ArgumentType that represents a material where Material.isBlock() is true |
static ArgumentType<org.bukkit.Material> |
ArgumentType.BLOCK
ArgumentType that represents a material where Material.isBlock() is true |
static ArgumentType<Boolean> |
ArgumentType.BOOLEAN
ArgumentType that represents a boolean |
static ArgumentType<Boolean> |
ArgumentType.BOOLEAN
ArgumentType that represents a boolean |
static ArgumentType<Command> |
ArgumentType.COMMAND
ArgumentType that represents a CommandCore command |
static ArgumentType<Command> |
ArgumentType.COMMAND
ArgumentType that represents a CommandCore command |
static ArgumentType<Double> |
ArgumentType.DOUBLE
ArgumentType that represents a double |
static ArgumentType<Double> |
ArgumentType.DOUBLE
ArgumentType that represents a double |
static ArgumentType<org.bukkit.entity.EntityType> |
ArgumentType.ENTITY
ArgumentType that represents an entity |
static ArgumentType<org.bukkit.entity.EntityType> |
ArgumentType.ENTITY
ArgumentType that represents an entity |
static ArgumentType<Integer> |
ArgumentType.INTEGER
ArgumentType that represents an integer |
static ArgumentType<Integer> |
ArgumentType.INTEGER
ArgumentType that represents an integer |
static ArgumentType<org.bukkit.Material> |
ArgumentType.ITEM
ArgumentType that represents a material where Material.isItem() is true |
static ArgumentType<org.bukkit.Material> |
ArgumentType.ITEM
ArgumentType that represents a material where Material.isItem() is true |
static ArgumentType<org.bukkit.entity.EntityType> |
ArgumentType.LIVING_ENTITY
ArgumentType that represents an entity that is living |
static ArgumentType<org.bukkit.entity.EntityType> |
ArgumentType.LIVING_ENTITY
ArgumentType that represents an entity that is living |
static ArgumentType<org.bukkit.loot.LootTable> |
ArgumentType.LOOT_TABLE
ArgumentType that represents a loot table |
static ArgumentType<org.bukkit.loot.LootTable> |
ArgumentType.LOOT_TABLE
ArgumentType that represents a loot table |
static ArgumentType<org.bukkit.Material> |
ArgumentType.MATERIAL
ArgumentType that represents a material |
static ArgumentType<org.bukkit.Material> |
ArgumentType.MATERIAL
ArgumentType that represents a material |
static ArgumentType<String> |
ArgumentType.NAME
ArgumentType that represents the name of something. |
static ArgumentType<String> |
ArgumentType.NAME
ArgumentType that represents the name of something. |
static ArgumentType<Integer> |
ArgumentType.NATURAL_NUMBER
ArgumentType that represents an integer that is no smaller than 1 |
static ArgumentType<Integer> |
ArgumentType.NATURAL_NUMBER
ArgumentType that represents an integer that is no smaller than 1 |
static ArgumentType<org.bukkit.entity.Player> |
ArgumentType.PLAYER
ArgumentType that represents a player |
static ArgumentType<org.bukkit.entity.Player> |
ArgumentType.PLAYER
ArgumentType that represents a player |
static ArgumentType<org.bukkit.entity.EntityType> |
ArgumentType.SPAWNABLE_ENTITY
ArgumentType that represents an entity that can be spawned using RegionAccessor.spawnEntity(Location, EntityType). |
static ArgumentType<org.bukkit.entity.EntityType> |
ArgumentType.SPAWNABLE_ENTITY
ArgumentType that represents an entity that can be spawned using RegionAccessor.spawnEntity(Location, EntityType). |
static ArgumentType<UUID> |
ArgumentType.UUID
ArgumentType that represents a UUID |
static ArgumentType<UUID> |
ArgumentType.UUID
ArgumentType that represents a UUID |
static ArgumentType<org.bukkit.util.Vector> |
ArgumentType.VECTOR
ArgumentType that represents a vector |
static ArgumentType<org.bukkit.util.Vector> |
ArgumentType.VECTOR
ArgumentType that represents a vector |
static ArgumentType<String> |
ArgumentType.WORD
ArgumentType that is just a single word |
static ArgumentType<String> |
ArgumentType.WORD
ArgumentType that is just a single word |
static ArgumentType<org.bukkit.World> |
ArgumentType.WORLD
ArgumentType that represents a loaded world |
static ArgumentType<org.bukkit.World> |
ArgumentType.WORLD
ArgumentType that represents a loaded world |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull ArgumentType<Integer> |
ArgumentType.rangedInt(int min)
Creates an
ArgumentType that represents an integer with a minimum value (inclusive) |
static @NotNull ArgumentType<Integer> |
ArgumentType.rangedInt(int min)
Creates an
ArgumentType that represents an integer with a minimum value (inclusive) |
static @NotNull ArgumentType<Integer> |
ArgumentType.rangedInt(int min,
int max)
Creates an
ArgumentType that represents an integer with a minimum (inclusive) and maximum (inclusive) value |
static @NotNull ArgumentType<Integer> |
ArgumentType.rangedInt(int min,
int max)
Creates an
ArgumentType that represents an integer with a minimum (inclusive) and maximum (inclusive) value |
| Modifier and Type | Method and Description |
|---|---|
static <T> @NotNull ArgumentBuilder<T> |
ArgumentBuilder.argument(ArgumentType<T> type,
String argName)
Creates a new
ArgumentBuilder |
static <T> @NotNull ArgumentBuilder<T> |
ArgumentBuilder.argument(ArgumentType<T> type,
String argName)
Creates a new
ArgumentBuilder |
Copyright © 2024. All rights reserved.