Package net.minecraft.command.argument
Record Class ItemPredicateArgumentType.class_9444
java.lang.Object
java.lang.Record
net.minecraft.command.argument.ItemPredicateArgumentType.class_9444
- Record Components:
id-presenceChecker-valueChecker-
- Enclosing class:
ItemPredicateArgumentType
private static record ItemPredicateArgumentType.class_9444(Identifier id, Predicate<ItemStack> presenceChecker, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> valueChecker)
extends Record
- Mappings:
Namespace Name official gp$aintermediary net/minecraft/class_2293$class_9444named net/minecraft/command/argument/ItemPredicateArgumentType$class_9444official aintermediary comp_2527named idofficial bintermediary comp_2528named presenceCheckerofficial cintermediary comp_2529named valueChecker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.The field for thepresenceCheckerrecord component.The field for thevalueCheckerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_9444(Identifier identifier, Predicate<ItemStack> predicate, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.method_58535(com.mojang.brigadier.ImmutableStringReader immutableStringReader, RegistryOps<NbtElement> registryOps, NbtElement nbtElement) static <T> ItemPredicateArgumentType.class_9444method_58536(com.mojang.brigadier.ImmutableStringReader immutableStringReader, Identifier identifier, DataComponentType<T> dataComponentType) Returns the value of thepresenceCheckerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueCheckerrecord component.
-
Field Details
-
id
The field for theidrecord component. -
presenceChecker
The field for thepresenceCheckerrecord component. -
valueChecker
The field for thevalueCheckerrecord component.
-
-
Constructor Details
-
class_9444
class_9444(Identifier identifier, Predicate<ItemStack> predicate, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder)
-
-
Method Details
-
method_58536
public static <T> ItemPredicateArgumentType.class_9444 method_58536(com.mojang.brigadier.ImmutableStringReader immutableStringReader, Identifier identifier, DataComponentType<T> dataComponentType) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLgp$a;a(Lcom/mojang/brigadier/ImmutableStringReader;Lakh;Ljz;)Lgp$a;intermediary method_58536Lnet/minecraft/class_2293$class_9444;method_58536(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/class_2960;Lnet/minecraft/class_9331;)Lnet/minecraft/class_2293$class_9444;named method_58536Lnet/minecraft/command/argument/ItemPredicateArgumentType$class_9444;method_58536(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/util/Identifier;Lnet/minecraft/component/DataComponentType;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$class_9444;
-
method_58535
public Predicate<ItemStack> method_58535(com.mojang.brigadier.ImmutableStringReader immutableStringReader, RegistryOps<NbtElement> registryOps, NbtElement nbtElement) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLgp$a;a(Lcom/mojang/brigadier/ImmutableStringReader;Lakf;Lux;)Ljava/util/function/Predicate;intermediary method_58535Lnet/minecraft/class_2293$class_9444;method_58535(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/class_6903;Lnet/minecraft/class_2520;)Ljava/util/function/Predicate;named method_58535Lnet/minecraft/command/argument/ItemPredicateArgumentType$class_9444;method_58535(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/registry/RegistryOps;Lnet/minecraft/nbt/NbtElement;)Ljava/util/function/Predicate;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
presenceChecker
Returns the value of thepresenceCheckerrecord component.- Returns:
- the value of the
presenceCheckerrecord component
-
valueChecker
Returns the value of thevalueCheckerrecord component.- Returns:
- the value of the
valueCheckerrecord component
-