Package net.minecraft.predicate.item
Class ItemPredicate.Builder
java.lang.Object
net.minecraft.predicate.item.ItemPredicate.Builder
- Enclosing class:
- ItemPredicate
public static class ItemPredicate.Builder extends Object
- Mappings:
Namespace Name official bq$a
intermediary net/minecraft/class_2073$class_2074
named net/minecraft/predicate/item/ItemPredicate$Builder
-
Field Summary
Fields Modifier and Type Field Description private NumberRange.IntRange
count
private NumberRange.IntRange
durability
private List<EnchantmentPredicate>
enchantments
private Item
item
private NbtPredicate
nbt
private Potion
potion
private List<EnchantmentPredicate>
storedEnchantments
private Tag<Item>
tag
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
Modifier and Type Method Description ItemPredicate
build()
static ItemPredicate.Builder
create()
ItemPredicate.Builder
enchantment(EnchantmentPredicate enchantment)
ItemPredicate.Builder
item(ItemConvertible item)
ItemPredicate.Builder
nbt(CompoundTag nbt)
ItemPredicate.Builder
tag(Tag<Item> tag)
-
Field Details
-
enchantments
- Mappings:
Namespace Name Mixin selector official a
Lbq$a;a:Ljava/util/List;
intermediary field_9649
Lnet/minecraft/class_2073$class_2074;field_9649:Ljava/util/List;
named enchantments
Lnet/minecraft/predicate/item/ItemPredicate$Builder;enchantments:Ljava/util/List;
-
storedEnchantments
- Mappings:
Namespace Name Mixin selector official b
Lbq$a;b:Ljava/util/List;
intermediary field_20690
Lnet/minecraft/class_2073$class_2074;field_20690:Ljava/util/List;
named storedEnchantments
Lnet/minecraft/predicate/item/ItemPredicate$Builder;storedEnchantments:Ljava/util/List;
-
item
- Mappings:
Namespace Name Mixin selector official c
Lbq$a;c:Lbnr;
intermediary field_9650
Lnet/minecraft/class_2073$class_2074;field_9650:Lnet/minecraft/class_1792;
named item
Lnet/minecraft/predicate/item/ItemPredicate$Builder;item:Lnet/minecraft/item/Item;
-
tag
- Mappings:
Namespace Name Mixin selector official d
Lbq$a;d:Lafc;
intermediary field_9652
Lnet/minecraft/class_2073$class_2074;field_9652:Lnet/minecraft/class_3494;
named tag
Lnet/minecraft/predicate/item/ItemPredicate$Builder;tag:Lnet/minecraft/tag/Tag;
-
count
- Mappings:
Namespace Name Mixin selector official e
Lbq$a;e:Lbz$d;
intermediary field_9648
Lnet/minecraft/class_2073$class_2074;field_9648:Lnet/minecraft/class_2096$class_2100;
named count
Lnet/minecraft/predicate/item/ItemPredicate$Builder;count:Lnet/minecraft/predicate/NumberRange$IntRange;
-
durability
- Mappings:
Namespace Name Mixin selector official f
Lbq$a;f:Lbz$d;
intermediary field_9653
Lnet/minecraft/class_2073$class_2074;field_9653:Lnet/minecraft/class_2096$class_2100;
named durability
Lnet/minecraft/predicate/item/ItemPredicate$Builder;durability:Lnet/minecraft/predicate/NumberRange$IntRange;
-
potion
- Mappings:
Namespace Name Mixin selector official g
Lbq$a;g:Lbpq;
intermediary field_9651
Lnet/minecraft/class_2073$class_2074;field_9651:Lnet/minecraft/class_1842;
named potion
Lnet/minecraft/predicate/item/ItemPredicate$Builder;potion:Lnet/minecraft/potion/Potion;
-
nbt
- Mappings:
Namespace Name Mixin selector official h
Lbq$a;h:Lcb;
intermediary field_9654
Lnet/minecraft/class_2073$class_2074;field_9654:Lnet/minecraft/class_2105;
named nbt
Lnet/minecraft/predicate/item/ItemPredicate$Builder;nbt:Lnet/minecraft/predicate/NbtPredicate;
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbq$a;a()Lbq$a;
intermediary method_8973
Lnet/minecraft/class_2073$class_2074;method_8973()Lnet/minecraft/class_2073$class_2074;
named create
Lnet/minecraft/predicate/item/ItemPredicate$Builder;create()Lnet/minecraft/predicate/item/ItemPredicate$Builder;
-
item
- Mappings:
Namespace Name Mixin selector official a
Lbq$a;a(Lbtu;)Lbq$a;
intermediary method_8977
Lnet/minecraft/class_2073$class_2074;method_8977(Lnet/minecraft/class_1935;)Lnet/minecraft/class_2073$class_2074;
named item
Lnet/minecraft/predicate/item/ItemPredicate$Builder;item(Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
-
tag
- Mappings:
Namespace Name Mixin selector official a
Lbq$a;a(Lafc;)Lbq$a;
intermediary method_8975
Lnet/minecraft/class_2073$class_2074;method_8975(Lnet/minecraft/class_3494;)Lnet/minecraft/class_2073$class_2074;
named tag
Lnet/minecraft/predicate/item/ItemPredicate$Builder;tag(Lnet/minecraft/tag/Tag;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
-
nbt
- Mappings:
Namespace Name Mixin selector official a
Lbq$a;a(Lmq;)Lbq$a;
intermediary method_20399
Lnet/minecraft/class_2073$class_2074;method_20399(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2073$class_2074;
named nbt
Lnet/minecraft/predicate/item/ItemPredicate$Builder;nbt(Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
-
enchantment
- Mappings:
Namespace Name Mixin selector official a
Lbq$a;a(Lbb;)Lbq$a;
intermediary method_8978
Lnet/minecraft/class_2073$class_2074;method_8978(Lnet/minecraft/class_2035;)Lnet/minecraft/class_2073$class_2074;
named enchantment
Lnet/minecraft/predicate/item/ItemPredicate$Builder;enchantment(Lnet/minecraft/predicate/item/EnchantmentPredicate;)Lnet/minecraft/predicate/item/ItemPredicate$Builder;
-
build
- Mappings:
Namespace Name Mixin selector official b
Lbq$a;b()Lbq;
intermediary method_8976
Lnet/minecraft/class_2073$class_2074;method_8976()Lnet/minecraft/class_2073;
named build
Lnet/minecraft/predicate/item/ItemPredicate$Builder;build()Lnet/minecraft/predicate/item/ItemPredicate;
-