Package net.minecraft.command.argument
Class ItemPredicateArgumentType
java.lang.Object
net.minecraft.command.argument.ItemPredicateArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
public class ItemPredicateArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
- Mappings:
Namespace Name official fw
intermediary net/minecraft/class_2293
named net/minecraft/command/argument/ItemPredicateArgumentType
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Collection<String>
private final RegistryWrapper<Item>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetItemStackPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) private static ItemPredicateArgumentType.ItemStackPredicateArgument
getItemStackPredicate
(Predicate<RegistryEntry<Item>> predicate, @Nullable NbtCompound nbt) static ItemPredicateArgumentType
itemPredicate
(CommandRegistryAccess commandRegistryAccess) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse
(com.mojang.brigadier.StringReader stringReader)
-
Field Details
-
EXAMPLES
- Mappings:
Namespace Name Mixin selector official a
Lfw;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;
-
registryWrapper
- Mappings:
Namespace Name Mixin selector official b
Lfw;b:Lhf;
intermediary field_37974
Lnet/minecraft/class_2293;field_37974:Lnet/minecraft/class_7225;
named registryWrapper
Lnet/minecraft/command/argument/ItemPredicateArgumentType;registryWrapper:Lnet/minecraft/registry/RegistryWrapper;
-
-
Constructor Details
-
ItemPredicateArgumentType
- Mappings:
Namespace Name Mixin selector official <init>
Lfw;<init>(Ldl;)V
intermediary <init>
Lnet/minecraft/class_2293;<init>(Lnet/minecraft/class_7157;)V
named <init>
Lnet/minecraft/command/argument/ItemPredicateArgumentType;<init>(Lnet/minecraft/command/CommandRegistryAccess;)V
-
-
Method Details
-
itemPredicate
- Mappings:
Namespace Name Mixin selector official a
Lfw;a(Ldl;)Lfw;
intermediary method_9801
Lnet/minecraft/class_2293;method_9801(Lnet/minecraft/class_7157;)Lnet/minecraft/class_2293;
named itemPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;itemPredicate(Lnet/minecraft/command/CommandRegistryAccess;)Lnet/minecraft/command/argument/ItemPredicateArgumentType;
-
parse
public ItemPredicateArgumentType.ItemStackPredicateArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lfw;a(Lcom/mojang/brigadier/StringReader;)Lfw$a;
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$ItemStackPredicateArgument;
-
getItemStackPredicate
public static Predicate<ItemStack> getItemStackPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
Namespace Name Mixin selector official a
Lfw;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 getItemStackPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;getItemStackPredicate(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 interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
- Mappings:
Namespace Name Mixin selector official listSuggestions
Lfw;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
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<ItemPredicateArgumentType.ItemStackPredicateArgument>
-
getItemStackPredicate
private static ItemPredicateArgumentType.ItemStackPredicateArgument getItemStackPredicate(Predicate<RegistryEntry<Item>> predicate, @Nullable @Nullable NbtCompound nbt) - Mappings:
Namespace Name Mixin selector official a
Lfw;a(Ljava/util/function/Predicate;Lre;)Lfw$a;
intermediary method_41981
Lnet/minecraft/class_2293;method_41981(Ljava/util/function/Predicate;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2293$class_2295;
named getItemStackPredicate
Lnet/minecraft/command/argument/ItemPredicateArgumentType;getItemStackPredicate(Ljava/util/function/Predicate;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$ItemStackPredicateArgument;
-