Package net.minecraft.predicate.item
Class ItemPredicate
java.lang.Object
net.minecraft.predicate.item.ItemPredicate
- Mappings:
Namespace Name official bvintermediary net/minecraft/class_2073named net/minecraft/predicate/item/ItemPredicate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ItemPredicateprivate NumberRange.IntRangeprivate NumberRange.IntRangeprivate EnchantmentPredicate[]private NbtPredicateprivate EnchantmentPredicate[] -
Constructor Summary
ConstructorsConstructorDescriptionItemPredicate(@Nullable Tag<Item> tag, @Nullable Item item, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, @Nullable Potion potion, NbtPredicate nbt) -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemPredicate[]static ItemPredicatefromJson(@Nullable JsonElement el)booleantoJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official aLbv;a:Lbv;intermediary field_9640Lnet/minecraft/class_2073;field_9640:Lnet/minecraft/class_2073;named ANYLnet/minecraft/predicate/item/ItemPredicate;ANY:Lnet/minecraft/predicate/item/ItemPredicate;
-
tag
- Mappings:
Namespace Name Mixin selector official bLbv;b:Lafs;intermediary field_9643Lnet/minecraft/class_2073;field_9643:Lnet/minecraft/class_3494;named tagLnet/minecraft/predicate/item/ItemPredicate;tag:Lnet/minecraft/tag/Tag;
-
item
- Mappings:
Namespace Name Mixin selector official cLbv;c:Lbpt;intermediary field_9644Lnet/minecraft/class_2073;field_9644:Lnet/minecraft/class_1792;named itemLnet/minecraft/predicate/item/ItemPredicate;item:Lnet/minecraft/item/Item;
-
count
- Mappings:
Namespace Name Mixin selector official dLbv;d:Lce$d;intermediary field_9641Lnet/minecraft/class_2073;field_9641:Lnet/minecraft/class_2096$class_2100;named countLnet/minecraft/predicate/item/ItemPredicate;count:Lnet/minecraft/predicate/NumberRange$IntRange;
-
durability
- Mappings:
Namespace Name Mixin selector official eLbv;e:Lce$d;intermediary field_9646Lnet/minecraft/class_2073;field_9646:Lnet/minecraft/class_2096$class_2100;named durabilityLnet/minecraft/predicate/item/ItemPredicate;durability:Lnet/minecraft/predicate/NumberRange$IntRange;
-
enchantments
- Mappings:
Namespace Name Mixin selector official fLbv;f:[Lbg;intermediary field_9647Lnet/minecraft/class_2073;field_9647:[Lnet/minecraft/class_2035;named enchantmentsLnet/minecraft/predicate/item/ItemPredicate;enchantments:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
storedEnchantments
- Mappings:
Namespace Name Mixin selector official gLbv;g:[Lbg;intermediary field_20689Lnet/minecraft/class_2073;field_20689:[Lnet/minecraft/class_2035;named storedEnchantmentsLnet/minecraft/predicate/item/ItemPredicate;storedEnchantments:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
potion
- Mappings:
Namespace Name Mixin selector official hLbv;h:Lbrs;intermediary field_9642Lnet/minecraft/class_2073;field_9642:Lnet/minecraft/class_1842;named potionLnet/minecraft/predicate/item/ItemPredicate;potion:Lnet/minecraft/potion/Potion;
-
nbt
- Mappings:
Namespace Name Mixin selector official iLbv;i:Lcg;intermediary field_9645Lnet/minecraft/class_2073;field_9645:Lnet/minecraft/class_2105;named nbtLnet/minecraft/predicate/item/ItemPredicate;nbt:Lnet/minecraft/predicate/NbtPredicate;
-
-
Constructor Details
-
ItemPredicate
public ItemPredicate() -
ItemPredicate
public ItemPredicate(@Nullable @Nullable Tag<Item> tag, @Nullable @Nullable Item item, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, @Nullable @Nullable Potion potion, NbtPredicate nbt)- Mappings:
Namespace Name Mixin selector official <init>Lbv;<init>(Lafs;Lbpt;Lce$d;Lce$d;[Lbg;[Lbg;Lbrs;Lcg;)Vintermediary <init>Lnet/minecraft/class_2073;<init>(Lnet/minecraft/class_3494;Lnet/minecraft/class_1792;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;[Lnet/minecraft/class_2035;[Lnet/minecraft/class_2035;Lnet/minecraft/class_1842;Lnet/minecraft/class_2105;)Vnamed <init>Lnet/minecraft/predicate/item/ItemPredicate;<init>(Lnet/minecraft/tag/Tag;Lnet/minecraft/item/Item;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;[Lnet/minecraft/predicate/item/EnchantmentPredicate;[Lnet/minecraft/predicate/item/EnchantmentPredicate;Lnet/minecraft/potion/Potion;Lnet/minecraft/predicate/NbtPredicate;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official aLbv;a(Lbpx;)Zintermediary method_8970Lnet/minecraft/class_2073;method_8970(Lnet/minecraft/class_1799;)Znamed testLnet/minecraft/predicate/item/ItemPredicate;test(Lnet/minecraft/item/ItemStack;)Z
-
fromJson
- Mappings:
Namespace Name Mixin selector official aLbv;a(Lcom/google/gson/JsonElement;)Lbv;intermediary method_8969Lnet/minecraft/class_2073;method_8969(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2073;named fromJsonLnet/minecraft/predicate/item/ItemPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/item/ItemPredicate;
-
toJson
- Mappings:
Namespace Name Mixin selector official aLbv;a()Lcom/google/gson/JsonElement;intermediary method_8971Lnet/minecraft/class_2073;method_8971()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/predicate/item/ItemPredicate;toJson()Lcom/google/gson/JsonElement;
-
deserializeAll
- Mappings:
Namespace Name Mixin selector official bLbv;b(Lcom/google/gson/JsonElement;)[Lbv;intermediary method_8972Lnet/minecraft/class_2073;method_8972(Lcom/google/gson/JsonElement;)[Lnet/minecraft/class_2073;named deserializeAllLnet/minecraft/predicate/item/ItemPredicate;deserializeAll(Lcom/google/gson/JsonElement;)[Lnet/minecraft/predicate/item/ItemPredicate;
-