Package net.minecraft.command.argument
Record Class ItemPredicateArgumentType.SubPredicateCheck
java.lang.Object
java.lang.Record
net.minecraft.command.argument.ItemPredicateArgumentType.SubPredicateCheck
- Record Components:
- id-
- type-
- Enclosing class:
- ItemPredicateArgumentType
private static record ItemPredicateArgumentType.SubPredicateCheck(Identifier id, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> type)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/ItemPredicateArgumentType$SubPredicateCheck- intermediary - net/minecraft/class_2293$class_9446- official - hj$c- named - id- intermediary - comp_2530- official - a- named - type- intermediary - comp_2531- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSubPredicateCheck(Identifier identifier, 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.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
- 
Field Details
- 
Constructor Details- 
SubPredicateCheck- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/command/argument/ItemPredicateArgumentType$SubPredicateCheck;<init>(Lnet/minecraft/registry/entry/RegistryEntry$Reference;)V- intermediary - <init>- Lnet/minecraft/class_2293$class_9446;<init>(Lnet/minecraft/class_6880$class_6883;)V- official - <init>- Lhj$c;<init>(Ljr$c;)V
 
- 
SubPredicateCheckSubPredicateCheck(Identifier identifier, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) 
 
- 
- 
Method Details- 
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$SubPredicateCheck;createPredicate(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/registry/RegistryOps;Lnet/minecraft/nbt/NbtElement;)Ljava/util/function/Predicate;- intermediary - method_58559- Lnet/minecraft/class_2293$class_9446;method_58559(Lcom/mojang/brigadier/ImmutableStringReader;Lnet/minecraft/class_6903;Lnet/minecraft/class_2520;)Ljava/util/function/Predicate;- official - a- Lhj$c;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
 
- 
typeReturns the value of thetyperecord component.- Returns:
- the value of the typerecord component
 
 
-