Class RightClickBlockWithItemTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.RightClickBlockWithItemTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- RightClickBlockWithItemTrigger
public static class RightClickBlockWithItemTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
private LocationPredicate
location
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231602_1_, LocationPredicate p_i231602_2_, ItemPredicate p_i231602_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RightClickBlockWithItemTrigger.Instance
itemUsedOnBlock(LocationPredicate.Builder p_234852_0_, ItemPredicate.Builder p_234852_1_)
boolean
matches(BlockState p_226700_1_, ServerWorld p_226700_2_, BlockPos p_226700_3_, ItemStack p_226700_4_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
location
private final LocationPredicate location
-
item
private final ItemPredicate item
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231602_1_, LocationPredicate p_i231602_2_, ItemPredicate p_i231602_3_)
-
-
Method Detail
-
itemUsedOnBlock
public static RightClickBlockWithItemTrigger.Instance itemUsedOnBlock(LocationPredicate.Builder p_234852_0_, ItemPredicate.Builder p_234852_1_)
-
matches
public boolean matches(BlockState p_226700_1_, ServerWorld p_226700_2_, BlockPos p_226700_3_, ItemStack p_226700_4_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-