Class ItemInteractWithBlockTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ItemInteractWithBlockTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- ItemInteractWithBlockTrigger
public static class ItemInteractWithBlockTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ResourceLocation p_220061_, EntityPredicate.Composite p_220062_, LocationPredicate p_220063_, ItemPredicate p_220064_) -
Method Summary
Modifier and TypeMethodDescriptionallayDropItemOnBlock
(LocationPredicate.Builder p_220076_, ItemPredicate.Builder p_220077_) itemUsedOnBlock
(LocationPredicate.Builder p_220066_, ItemPredicate.Builder p_220067_) boolean
matches
(BlockState p_220071_, ServerLevel p_220072_, BlockPos p_220073_, ItemStack p_220074_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_220069_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
location
-
item
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ResourceLocation p_220061_, EntityPredicate.Composite p_220062_, LocationPredicate p_220063_, ItemPredicate p_220064_)
-
-
Method Details
-
itemUsedOnBlock
public static ItemInteractWithBlockTrigger.TriggerInstance itemUsedOnBlock(LocationPredicate.Builder p_220066_, ItemPredicate.Builder p_220067_) -
allayDropItemOnBlock
public static ItemInteractWithBlockTrigger.TriggerInstance allayDropItemOnBlock(LocationPredicate.Builder p_220076_, ItemPredicate.Builder p_220077_) -
matches
public boolean matches(BlockState p_220071_, ServerLevel p_220072_, BlockPos p_220073_, ItemStack p_220074_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-