public class ItemStringReader extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
allowTag |
private int |
cursor |
private Map<Property<?>,Comparable<?>> |
field_10801 |
private Identifier |
id |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ID_INVALID_EXCEPTION |
private Item |
item |
private static BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> |
NBT_SUGGESTION_PROVIDER |
private com.mojang.brigadier.StringReader |
reader |
private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> |
suggestions |
private CompoundTag |
tag |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
TAG_DISALLOWED_EXCEPTION |
Constructor and Description |
---|
ItemStringReader(com.mojang.brigadier.StringReader reader,
boolean allowTag) |
Modifier and Type | Method and Description |
---|---|
ItemStringReader |
consume() |
Identifier |
getId() |
Item |
getItem() |
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
getSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder,
TagGroup<Item> tagGroup) |
CompoundTag |
getTag() |
void |
readItem() |
void |
readNbt() |
void |
readTag() |
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestAny(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder,
TagGroup<Item> tagGroup) |
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder,
TagGroup<Item> tagGroup) |
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder,
TagGroup<Item> tagGroup) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType TAG_DISALLOWED_EXCEPTION
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ID_INVALID_EXCEPTION
private static final BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> NBT_SUGGESTION_PROVIDER
private final com.mojang.brigadier.StringReader reader
private final boolean allowTag
private final Map<Property<?>,Comparable<?>> field_10801
private Item item
@Nullable private CompoundTag tag
private Identifier id
private int cursor
private BiFunction<com.mojang.brigadier.suggestion.SuggestionsBuilder,TagGroup<Item>,CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> suggestions
public ItemStringReader(com.mojang.brigadier.StringReader reader, boolean allowTag)
public Item getItem()
@Nullable public CompoundTag getTag()
public Identifier getId()
public void readItem() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public void readTag() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public void readNbt() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public ItemStringReader consume() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, TagGroup<Item> tagGroup)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, TagGroup<Item> tagGroup)
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestAny(com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder, TagGroup<Item> tagGroup)
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder, TagGroup<Item> tagGroup)