Package net.minecraft.predicate.item
Class ItemPredicate
java.lang.Object
net.minecraft.predicate.item.ItemPredicate
public class ItemPredicate extends Object
- Mappings:
Namespace Name official bq
intermediary net/minecraft/class_2073
named net/minecraft/predicate/item/ItemPredicate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ItemPredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static ItemPredicate
ANY
private NumberRange.IntRange
count
private NumberRange.IntRange
durability
private EnchantmentPredicate[]
enchantments
private Item
item
private NbtPredicate
nbt
private Potion
potion
private EnchantmentPredicate[]
storedEnchantments
private Tag<Item>
tag
-
Constructor Summary
Constructors Constructor Description ItemPredicate()
ItemPredicate(Tag<Item> tag, Item item, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, Potion potion, NbtPredicate nbt)
-
Method Summary
Modifier and Type Method Description static ItemPredicate[]
deserializeAll(JsonElement el)
static ItemPredicate
fromJson(JsonElement el)
boolean
test(ItemStack stack)
JsonElement
toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lbq;a:Lbq;
intermediary field_9640
Lnet/minecraft/class_2073;field_9640:Lnet/minecraft/class_2073;
named ANY
Lnet/minecraft/predicate/item/ItemPredicate;ANY:Lnet/minecraft/predicate/item/ItemPredicate;
-
tag
- Mappings:
Namespace Name Mixin selector official b
Lbq;b:Lafc;
intermediary field_9643
Lnet/minecraft/class_2073;field_9643:Lnet/minecraft/class_3494;
named tag
Lnet/minecraft/predicate/item/ItemPredicate;tag:Lnet/minecraft/tag/Tag;
-
item
- Mappings:
Namespace Name Mixin selector official c
Lbq;c:Lbnr;
intermediary field_9644
Lnet/minecraft/class_2073;field_9644:Lnet/minecraft/class_1792;
named item
Lnet/minecraft/predicate/item/ItemPredicate;item:Lnet/minecraft/item/Item;
-
count
- Mappings:
Namespace Name Mixin selector official d
Lbq;d:Lbz$d;
intermediary field_9641
Lnet/minecraft/class_2073;field_9641:Lnet/minecraft/class_2096$class_2100;
named count
Lnet/minecraft/predicate/item/ItemPredicate;count:Lnet/minecraft/predicate/NumberRange$IntRange;
-
durability
- Mappings:
Namespace Name Mixin selector official e
Lbq;e:Lbz$d;
intermediary field_9646
Lnet/minecraft/class_2073;field_9646:Lnet/minecraft/class_2096$class_2100;
named durability
Lnet/minecraft/predicate/item/ItemPredicate;durability:Lnet/minecraft/predicate/NumberRange$IntRange;
-
enchantments
- Mappings:
Namespace Name Mixin selector official f
Lbq;f:[Lbb;
intermediary field_9647
Lnet/minecraft/class_2073;field_9647:[Lnet/minecraft/class_2035;
named enchantments
Lnet/minecraft/predicate/item/ItemPredicate;enchantments:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
storedEnchantments
- Mappings:
Namespace Name Mixin selector official g
Lbq;g:[Lbb;
intermediary field_20689
Lnet/minecraft/class_2073;field_20689:[Lnet/minecraft/class_2035;
named storedEnchantments
Lnet/minecraft/predicate/item/ItemPredicate;storedEnchantments:[Lnet/minecraft/predicate/item/EnchantmentPredicate;
-
potion
- Mappings:
Namespace Name Mixin selector official h
Lbq;h:Lbpq;
intermediary field_9642
Lnet/minecraft/class_2073;field_9642:Lnet/minecraft/class_1842;
named potion
Lnet/minecraft/predicate/item/ItemPredicate;potion:Lnet/minecraft/potion/Potion;
-
nbt
- Mappings:
Namespace Name Mixin selector official i
Lbq;i:Lcb;
intermediary field_9645
Lnet/minecraft/class_2073;field_9645:Lnet/minecraft/class_2105;
named nbt
Lnet/minecraft/predicate/item/ItemPredicate;nbt:Lnet/minecraft/predicate/NbtPredicate;
-
-
Constructor Details
-
ItemPredicate
public ItemPredicate() -
ItemPredicate
public ItemPredicate(@Nullable Tag<Item> tag, @Nullable Item item, NumberRange.IntRange count, NumberRange.IntRange durability, EnchantmentPredicate[] enchantments, EnchantmentPredicate[] storedEnchantments, @Nullable Potion potion, NbtPredicate nbt)- Mappings:
Namespace Name Mixin selector official <init>
Lbq;<init>(Lafc;Lbnr;Lbz$d;Lbz$d;[Lbb;[Lbb;Lbpq;Lcb;)V
intermediary <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;)V
named <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 a
Lbq;a(Lbnv;)Z
intermediary method_8970
Lnet/minecraft/class_2073;method_8970(Lnet/minecraft/class_1799;)Z
named test
Lnet/minecraft/predicate/item/ItemPredicate;test(Lnet/minecraft/item/ItemStack;)Z
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lbq;a(Lcom/google/gson/JsonElement;)Lbq;
intermediary method_8969
Lnet/minecraft/class_2073;method_8969(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2073;
named fromJson
Lnet/minecraft/predicate/item/ItemPredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/item/ItemPredicate;
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lbq;a()Lcom/google/gson/JsonElement;
intermediary method_8971
Lnet/minecraft/class_2073;method_8971()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/predicate/item/ItemPredicate;toJson()Lcom/google/gson/JsonElement;
-
deserializeAll
- Mappings:
Namespace Name Mixin selector official b
Lbq;b(Lcom/google/gson/JsonElement;)[Lbq;
intermediary method_8972
Lnet/minecraft/class_2073;method_8972(Lcom/google/gson/JsonElement;)[Lnet/minecraft/class_2073;
named deserializeAll
Lnet/minecraft/predicate/item/ItemPredicate;deserializeAll(Lcom/google/gson/JsonElement;)[Lnet/minecraft/predicate/item/ItemPredicate;
-