Class EnchantedItemCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.EnchantedItemCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
EnchantedItemCriterion
- Mappings:
Namespace Name official bk$a
intermediary net/minecraft/class_2030$class_2032
named net/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
private final NumberRange.IntRange
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange levels) -
Method Summary
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official a
Lbk$a;a:Ljava/util/Optional;
intermediary field_9567
Lnet/minecraft/class_2030$class_2032;field_9567:Ljava/util/Optional;
named item
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;item:Ljava/util/Optional;
-
levels
- Mappings:
Namespace Name Mixin selector official b
Lbk$a;b:Lcl$d;
intermediary field_9568
Lnet/minecraft/class_2030$class_2032;field_9568:Lnet/minecraft/class_2096$class_2100;
named levels
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;levels:Lnet/minecraft/predicate/NumberRange$IntRange;
-
-
Constructor Details
-
Conditions
public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange levels) - Mappings:
Namespace Name Mixin selector official <init>
Lbk$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcl$d;)V
intermediary <init>
Lnet/minecraft/class_2030$class_2032;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;)V
named <init>
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;)V
-
-
Method Details
-
any
- Mappings:
Namespace Name Mixin selector official c
Lbk$a;c()Lam;
intermediary method_8877
Lnet/minecraft/class_2030$class_2032;method_8877()Lnet/minecraft/class_175;
named any
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;any()Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lbk$a;a(Lcjf;I)Z
intermediary method_8878
Lnet/minecraft/class_2030$class_2032;method_8878(Lnet/minecraft/class_1799;I)Z
named matches
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;I)Z
-
toJson
public com.google.gson.JsonObject toJson()- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lap;a()Lcom/google/gson/JsonObject;
intermediary method_807
Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
named toJson
Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;
-