Class EnchantedItemCriterion
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterion<EnchantedItemCriterion.Conditions>
net.minecraft.advancement.criterion.EnchantedItemCriterion
- All Implemented Interfaces:
Criterion<EnchantedItemCriterion.Conditions>
- Mappings:
Namespace Name official bk
intermediary net/minecraft/class_2030
named net/minecraft/advancement/criterion/EnchantedItemCriterion
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancement.criterion.Criterion
Criterion.ConditionsContainer<T extends CriterionConditions>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconditionsFromJson
(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) void
trigger
(ServerPlayerEntity player, ItemStack stack, int levels) Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterion
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, trigger
-
Constructor Details
-
EnchantedItemCriterion
public EnchantedItemCriterion()
-
-
Method Details
-
conditionsFromJson
public EnchantedItemCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) - Specified by:
conditionsFromJson
in classAbstractCriterion<EnchantedItemCriterion.Conditions>
- Mappings:
Namespace Name Mixin selector official a
Lbk;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lbk$a;
intermediary method_8872
Lnet/minecraft/class_2030;method_8872(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2030$class_2032;
named conditionsFromJson
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/EnchantedItemCriterion$Conditions;
-
trigger
- Mappings:
Namespace Name Mixin selector official a
Lbk;a(Lakr;Lcjf;I)V
intermediary method_8870
Lnet/minecraft/class_2030;method_8870(Lnet/minecraft/class_3222;Lnet/minecraft/class_1799;I)V
named trigger
Lnet/minecraft/advancement/criterion/EnchantedItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/item/ItemStack;I)V
-