T - The type of the argumentpublic interface SimpleArgumentType<T> extends ArgumentType<T>
ArgumentType that just parses a single wordArgumentType.EnumArgumentType<T extends Enum<T>>, ArgumentType.FilteredEnumArgumentType<T extends Enum<T>>BLOCK, BOOLEAN, COMMAND, DOUBLE, ENTITY, INTEGER, ITEM, LIVING_ENTITY, LOOT_TABLE, MATERIAL, NAME, NATURAL_NUMBER, PLAYER, SPAWNABLE_ENTITY, UUID, VECTOR, WORD, WORLD| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getTypeName()
Gets the argument type name
|
default @NotNull com.datasiqn.resultapi.Result<T,String> |
parse(@NotNull ArgumentReader reader)
Attempts to parse an
ArgumentReader. |
@NotNull com.datasiqn.resultapi.Result<T,com.datasiqn.resultapi.None> |
parseWord(String word)
Parses just a single word
|
getTabComplete, rangedInt, rangedInt@NotNull @NotNull String getTypeName()
@NotNull @NotNull com.datasiqn.resultapi.Result<T,com.datasiqn.resultapi.None> parseWord(String word)
word - The wordResult containing the parsed value@NotNull default @NotNull com.datasiqn.resultapi.Result<T,String> parse(@NotNull @NotNull ArgumentReader reader)
ArgumentTypeArgumentReader.
After parsing, the reader will always be on the space of the next argument, or the end of the readerparse in interface ArgumentType<T>reader - The reader to parseCopyright © 2024. All rights reserved.