Class ItemPredicateArgumentType

java.lang.Object
net.minecraft.command.argument.ItemPredicateArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>

public class ItemPredicateArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
Mappings:
Namespace Name
official fj
intermediary net/minecraft/class_2293
named net/minecraft/command/argument/ItemPredicateArgumentType
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a:Ljava/util/Collection;
      intermediary field_10812 Lnet/minecraft/class_2293;field_10812:Ljava/util/Collection;
      named EXAMPLES Lnet/minecraft/command/argument/ItemPredicateArgumentType;EXAMPLES:Ljava/util/Collection;
    • UNKNOWN_TAG_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType UNKNOWN_TAG_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Lfj;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_10811 Lnet/minecraft/class_2293;field_10811:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named UNKNOWN_TAG_EXCEPTION Lnet/minecraft/command/argument/ItemPredicateArgumentType;UNKNOWN_TAG_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • ItemPredicateArgumentType

      public ItemPredicateArgumentType()
  • Method Details

    • itemPredicate

      public static ItemPredicateArgumentType itemPredicate()
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a()Lfj;
      intermediary method_9801 Lnet/minecraft/class_2293;method_9801()Lnet/minecraft/class_2293;
      named itemPredicate Lnet/minecraft/command/argument/ItemPredicateArgumentType;itemPredicate()Lnet/minecraft/command/argument/ItemPredicateArgumentType;
    • parse

      public ItemPredicateArgumentType.ItemPredicateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a(Lcom/mojang/brigadier/StringReader;)Lfj$b;
      intermediary method_9800 Lnet/minecraft/class_2293;method_9800(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2293$class_2295;
      named parse Lnet/minecraft/command/argument/ItemPredicateArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemPredicateArgument;
    • getItemPredicate

      public static Predicate<ItemStack> getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfj;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
      intermediary method_9804 Lnet/minecraft/class_2293;method_9804(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
      named getItemPredicate Lnet/minecraft/command/argument/ItemPredicateArgumentType;getItemPredicate(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Ljava/util/function/Predicate;
    • listSuggestions

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>
      Mappings:
      Namespace Name Mixin selector
      official listSuggestions Lfj;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      intermediary listSuggestions Lnet/minecraft/class_2293;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
      named listSuggestions Lnet/minecraft/command/argument/ItemPredicateArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemPredicateArgument>