Class ItemCriterion
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterion<ItemCriterion.Conditions>
net.minecraft.advancement.criterion.ItemCriterion
- All Implemented Interfaces:
Criterion<ItemCriterion.Conditions>
- Mappings:
Namespace Name official cc
intermediary net/minecraft/class_4711
named net/minecraft/advancement/criterion/ItemCriterion
-
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, BlockPos pos, ItemStack stack) Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterion
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, trigger
-
Constructor Details
-
ItemCriterion
public ItemCriterion()
-
-
Method Details
-
conditionsFromJson
public ItemCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) - Specified by:
conditionsFromJson
in classAbstractCriterion<ItemCriterion.Conditions>
- Mappings:
Namespace Name Mixin selector official a
Lcc;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lcc$a;
intermediary method_23890
Lnet/minecraft/class_4711;method_23890(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_4711$class_4712;
named conditionsFromJson
Lnet/minecraft/advancement/criterion/ItemCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/ItemCriterion$Conditions;
-
trigger
- Mappings:
Namespace Name Mixin selector official a
Lcc;a(Lakr;Lgw;Lcjf;)V
intermediary method_23889
Lnet/minecraft/class_4711;method_23889(Lnet/minecraft/class_3222;Lnet/minecraft/class_2338;Lnet/minecraft/class_1799;)V
named trigger
Lnet/minecraft/advancement/criterion/ItemCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/item/ItemStack;)V
-