public class ItemParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
allowTags |
private static java.util.function.Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> |
DEFAULT_SUGGESTIONS_BUILDER |
private java.util.Map<IProperty<?>,java.lang.Comparable<?>> |
field_197336_d |
private Item |
item |
static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
ITEM_BAD_ID |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ITEM_TAGS_NOT_ALLOWED |
private CompoundNBT |
nbt |
private com.mojang.brigadier.StringReader |
reader |
private int |
readerCursor |
private java.util.function.Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> |
suggestionsBuilder |
private ResourceLocation |
tag |
Constructor and Description |
---|
ItemParser(com.mojang.brigadier.StringReader readerIn,
boolean allowTags) |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
fillSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
Item |
getItem() |
CompoundNBT |
getNbt() |
ResourceLocation |
getTag() |
ItemParser |
parse() |
void |
readItem() |
void |
readNBT() |
void |
readTag() |
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
suggestTagOrItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder) |
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ITEM_TAGS_NOT_ALLOWED
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ITEM_BAD_ID
private static final java.util.function.Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> DEFAULT_SUGGESTIONS_BUILDER
private final com.mojang.brigadier.StringReader reader
private final boolean allowTags
private final java.util.Map<IProperty<?>,java.lang.Comparable<?>> field_197336_d
private Item item
@Nullable private CompoundNBT nbt
private ResourceLocation tag
private int readerCursor
private java.util.function.Function<com.mojang.brigadier.suggestion.SuggestionsBuilder,java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>> suggestionsBuilder
public ItemParser(com.mojang.brigadier.StringReader readerIn, boolean allowTags)
public Item getItem()
@Nullable public CompoundNBT getNbt()
public ResourceLocation getTag()
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 ItemParser parse() throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTag(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestTagOrItem(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
public java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> fillSuggestions(com.mojang.brigadier.suggestion.SuggestionsBuilder builder)