Class ItemDurabilityChangedCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ItemDurabilityChangedCriterion.Conditions
- All Implemented Interfaces:
CriterionConditions
- Enclosing class:
- ItemDurabilityChangedCriterion
public static class ItemDurabilityChangedCriterion.Conditions extends AbstractCriterionConditions
- Mappings:
Namespace Name official bo$a
intermediary net/minecraft/class_2069$class_2071
named net/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions
-
Field Summary
Fields Modifier and Type Field Description private NumberRange.IntRange
delta
private NumberRange.IntRange
durability
private ItemPredicate
item
-
Constructor Summary
Constructors Constructor Description Conditions(EntityPredicate.Extended player, ItemPredicate item, NumberRange.IntRange durability, NumberRange.IntRange delta)
-
Method Summary
Modifier and Type Method Description static ItemDurabilityChangedCriterion.Conditions
create(EntityPredicate.Extended player, ItemPredicate item, NumberRange.IntRange durability)
boolean
matches(ItemStack stack, int durability)
JsonObject
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getId, getPlayerPredicate, toString
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official a
Lbo$a;a:Lbq;
intermediary field_9637
Lnet/minecraft/class_2069$class_2071;field_9637:Lnet/minecraft/class_2073;
named item
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;item:Lnet/minecraft/predicate/item/ItemPredicate;
-
durability
- Mappings:
Namespace Name Mixin selector official b
Lbo$a;b:Lbz$d;
intermediary field_9638
Lnet/minecraft/class_2069$class_2071;field_9638:Lnet/minecraft/class_2096$class_2100;
named durability
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;durability:Lnet/minecraft/predicate/NumberRange$IntRange;
-
delta
- Mappings:
Namespace Name Mixin selector official c
Lbo$a;c:Lbz$d;
intermediary field_9639
Lnet/minecraft/class_2069$class_2071;field_9639:Lnet/minecraft/class_2096$class_2100;
named delta
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;delta:Lnet/minecraft/predicate/NumberRange$IntRange;
-
-
Constructor Details
-
Conditions
public Conditions(EntityPredicate.Extended player, ItemPredicate item, NumberRange.IntRange durability, NumberRange.IntRange delta)- Mappings:
Namespace Name Mixin selector official <init>
Lbo$a;<init>(Lbg$b;Lbq;Lbz$d;Lbz$d;)V
intermediary <init>
Lnet/minecraft/class_2069$class_2071;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;)V
named <init>
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;)V
-
-
Method Details
-
create
public static ItemDurabilityChangedCriterion.Conditions create(EntityPredicate.Extended player, ItemPredicate item, NumberRange.IntRange durability)- Mappings:
Namespace Name Mixin selector official a
Lbo$a;a(Lbg$b;Lbq;Lbz$d;)Lbo$a;
intermediary method_8967
Lnet/minecraft/class_2069$class_2071;method_8967(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2073;Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_2069$class_2071;
named create
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;create(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/item/ItemPredicate;Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lbo$a;a(Lbnv;I)Z
intermediary method_8968
Lnet/minecraft/class_2069$class_2071;method_8968(Lnet/minecraft/class_1799;I)Z
named matches
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;matches(Lnet/minecraft/item/ItemStack;I)Z
-
toJson
- Specified by:
toJson
in interfaceCriterionConditions
- Overrides:
toJson
in classAbstractCriterionConditions
- Mappings:
Namespace Name Mixin selector official a
Lag;a(Lci;)Lcom/google/gson/JsonObject;
intermediary method_807
Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
named toJson
Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;
-