Package pers.neige.neigeitems.command
Class CommandUtils
-
- All Implemented Interfaces:
public class CommandUtils
-
-
Constructor Summary
Constructors Constructor Description CommandUtils()
-
Method Summary
Modifier and Type Method Description static StringreadUnquotedString(StringReader reader)static StringreadAllString(StringReader reader)static IntegerreadInteger(StringReader reader)static LongreadLong(StringReader reader)static DoublereadDouble(StringReader reader)static BigIntegerreadBigInteger(StringReader reader)static BigDecimalreadBigDecimal(StringReader reader)static <S, T> RequiredArgumentBuilder<S, T>argument(String name, ArgumentType<T> type)static <S> LiteralArgumentBuilder<S>literal(String name)static <S, T> RequiredArgumentBuilder<S, T>argument(String name, ArgumentType<T> type, Consumer<CommandContext<S>> help)static <S> LiteralArgumentBuilder<S>literal(String name, Consumer<CommandContext<S>> help)-
-
Method Detail
-
readUnquotedString
@NonNull() static String readUnquotedString(StringReader reader)
-
readAllString
@NonNull() static String readAllString(StringReader reader)
-
readInteger
@NonNull() static Integer readInteger(StringReader reader)
-
readDouble
@NonNull() static Double readDouble(StringReader reader)
-
readBigInteger
@Nullable() static BigInteger readBigInteger(StringReader reader)
-
readBigDecimal
@Nullable() static BigDecimal readBigDecimal(StringReader reader)
-
argument
static <S, T> RequiredArgumentBuilder<S, T> argument(String name, ArgumentType<T> type, Consumer<CommandContext<S>> help)
-
-
-
-