Package net.minecraft.command.argument
Record Class ItemPredicateArgumentType.ComponentCheck
java.lang.Object
java.lang.Record
net.minecraft.command.argument.ItemPredicateArgumentType.ComponentCheck
- Record Components:
- id-
- presenceChecker-
- valueChecker-
- Enclosing class:
- ItemPredicateArgumentType
private static record ItemPredicateArgumentType.ComponentCheck(Identifier id, Predicate<ItemStack> presenceChecker, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> valueChecker)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/ItemPredicateArgumentType$ComponentCheck- intermediary - net/minecraft/class_2293$class_9444- official - hj$a- named - id- intermediary - comp_2527- official - a- named - presenceChecker- intermediary - comp_2528- official - b- named - valueChecker- intermediary - comp_2529- official - c
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.The field for thepresenceCheckerrecord component.The field for thevalueCheckerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionComponentCheck(Identifier identifier, Predicate<ItemStack> predicate, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) 
- 
Method SummaryModifier and TypeMethodDescriptioncreatePredicate(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) final 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.Returns the value of thepresenceCheckerrecord component.static <T> ItemPredicateArgumentType.ComponentCheckread(com.mojang.brigadier.ImmutableStringReader reader, Identifier id, ComponentType<T> type) final StringtoString()Returns a string representation of this record class.Returns the value of thevalueCheckerrecord component.
- 
Field Details- 
idThe field for theidrecord component.
- 
presenceCheckerThe field for thepresenceCheckerrecord component.
- 
valueCheckerThe field for thevalueCheckerrecord component.
 
- 
- 
Constructor Details- 
ComponentCheckComponentCheck(Identifier identifier, Predicate<ItemStack> predicate, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) 
 
- 
- 
Method Details- 
readpublic static <T> ItemPredicateArgumentType.ComponentCheck read(com.mojang.brigadier.ImmutableStringReader reader, Identifier id, ComponentType<T> type) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - read- Lnet/minecraft/command/argument/ItemPredicateArgumentType$ComponentCheck;read(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/util/Identifier;Lnet/minecraft/component/ComponentType;)Lnet/minecraft/command/argument/ItemPredicateArgumentType$ComponentCheck;- intermediary - method_58536- Lnet/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;- official - a- Lhj$a;a(Lcom/mojang/brigadier/ImmutableStringReader;Lakv;Lku;)Lhj$a;
 
- 
createPredicatepublic Predicate<ItemStack> createPredicate(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - createPredicate- Lnet/minecraft/command/argument/ItemPredicateArgumentType$ComponentCheck;createPredicate(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/registry/RegistryOps;Lnet/minecraft/nbt/NbtElement;)Ljava/util/function/Predicate;- intermediary - method_58535- Lnet/minecraft/class_2293$class_9444;method_58535(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/class_6903;Lnet/minecraft/class_2520;)Ljava/util/function/Predicate;- official - a- Lhj$a;a(Lcom/mojang/brigadier/ImmutableStringReader;Lakt;Lun;)Ljava/util/function/Predicate;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
presenceCheckerReturns the value of thepresenceCheckerrecord component.- Returns:
- the value of the presenceCheckerrecord component
 
- 
valueCheckerReturns the value of thevalueCheckerrecord component.- Returns:
- the value of the valueCheckerrecord component
 
 
-