Class FilledBucketTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.FilledBucketTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- FilledBucketTrigger
public static class FilledBucketTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231585_1_, ItemPredicate p_i231585_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FilledBucketTrigger.Instance
filledBucket(ItemPredicate p_204827_0_)
boolean
matches(ItemStack p_204826_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
item
private final ItemPredicate item
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231585_1_, ItemPredicate p_i231585_2_)
-
-
Method Detail
-
filledBucket
public static FilledBucketTrigger.Instance filledBucket(ItemPredicate p_204827_0_)
-
matches
public boolean matches(ItemStack p_204826_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-