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 hf$c
named id
intermediary comp_2530
official a
named type
intermediary comp_2531
official b
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSubPredicateCheck
(Identifier identifier, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder) -
Method Summary
Modifier and TypeMethodDescriptioncreatePredicate
(com.mojang.brigadier.ImmutableStringReader reader, RegistryOps<NbtElement> ops, NbtElement nbt) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record 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>
Lhf$c;<init>(Ljm$c;)V
-
SubPredicateCheck
SubPredicateCheck(Identifier identifier, com.mojang.serialization.Decoder<? extends Predicate<ItemStack>> decoder)
-
-
Method Details
-
createPredicate
public 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
Lhf$c;a(Lcom/mojang/brigadier/ImmutableStringReader;Lako;Lux;)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 theid
record component.- Returns:
- the value of the
id
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-