Class RightClickBlockWithItemTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.RightClickBlockWithItemTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- RightClickBlockWithItemTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i231602_1_, LocationPredicate p_i231602_2_, ItemPredicate p_i231602_3_) -
Method Summary
Modifier and TypeMethodDescriptionitemUsedOnBlock
(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 Details
-
location
-
item
-
-
Constructor Details
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231602_1_, LocationPredicate p_i231602_2_, ItemPredicate p_i231602_3_)
-
-
Method Details
-
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
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-