Class ItemDurabilityChangedCriterion.Conditions
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.ItemDurabilityChangedCriterion.Conditions
- All Implemented Interfaces:
AbstractCriterion.Conditions
,CriterionConditions
- Enclosing class:
ItemDurabilityChangedCriterion
- Mappings:
Namespace Name official ca$a
intermediary net/minecraft/class_2069$class_2071
named net/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NumberRange.IntRange
private final NumberRange.IntRange
private final Optional<ItemPredicate>
-
Constructor Summary
ConstructorDescriptionConditions
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability, NumberRange.IntRange delta) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability) create
(Optional<ItemPredicate> item, NumberRange.IntRange durability) boolean
toJson()
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterionConditions
getPlayerPredicate
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official a
Lca$a;a:Ljava/util/Optional;
intermediary field_9637
Lnet/minecraft/class_2069$class_2071;field_9637:Ljava/util/Optional;
named item
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;item:Ljava/util/Optional;
-
durability
- Mappings:
Namespace Name Mixin selector official b
Lca$a;b:Lcl$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
Lca$a;c:Lcl$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(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability, NumberRange.IntRange delta) - Mappings:
Namespace Name Mixin selector official <init>
Lca$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Lcl$d;Lcl$d;)V
intermediary <init>
Lnet/minecraft/class_2069$class_2071;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2096$class_2100;)V
named <init>
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/predicate/NumberRange$IntRange;)V
-
-
Method Details
-
create
public static AdvancementCriterion<ItemDurabilityChangedCriterion.Conditions> create(Optional<ItemPredicate> item, NumberRange.IntRange durability) - Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Ljava/util/Optional;Lcl$d;)Lam;
intermediary method_35229
Lnet/minecraft/class_2069$class_2071;method_35229(Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;create(Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/AdvancementCriterion;
-
create
public static AdvancementCriterion<ItemDurabilityChangedCriterion.Conditions> create(Optional<LootContextPredicate> playerPredicate, Optional<ItemPredicate> item, NumberRange.IntRange durability) - Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Ljava/util/Optional;Ljava/util/Optional;Lcl$d;)Lam;
intermediary method_8967
Lnet/minecraft/class_2069$class_2071;method_8967(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/class_2096$class_2100;)Lnet/minecraft/class_175;
named create
Lnet/minecraft/advancement/criterion/ItemDurabilityChangedCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;Lnet/minecraft/predicate/NumberRange$IntRange;)Lnet/minecraft/advancement/AdvancementCriterion;
-
matches
- Mappings:
Namespace Name Mixin selector official a
Lca$a;a(Lcjf;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
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;
-