Class ConsumeItemCriterion
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterion<ConsumeItemCriterion.Conditions>
net.minecraft.advancement.criterion.ConsumeItemCriterion
- All Implemented Interfaces:
Criterion<ConsumeItemCriterion.Conditions>
public class ConsumeItemCriterion extends AbstractCriterion<ConsumeItemCriterion.Conditions>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConsumeItemCriterion.Conditions
Nested classes/interfaces inherited from interface net.minecraft.advancement.criterion.Criterion
Criterion.ConditionsContainer<T extends CriterionConditions>
-
Field Summary
Fields Modifier and Type Field Description private static Identifier
ID
-
Constructor Summary
Constructors Constructor Description ConsumeItemCriterion()
-
Method Summary
Modifier and Type Method Description ConsumeItemCriterion.Conditions
conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
Identifier
getId()
void
trigger(ServerPlayerEntity player, ItemStack stack)
Methods inherited from class net.minecraft.advancement.criterion.AbstractCriterion
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
-
Field Details
-
ID
-
-
Constructor Details
-
ConsumeItemCriterion
public ConsumeItemCriterion()
-
-
Method Details
-
getId
-
conditionsFromJson
public ConsumeItemCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)- Specified by:
conditionsFromJson
in classAbstractCriterion<ConsumeItemCriterion.Conditions>
-
trigger
-