Class ItemUsedOnLocationTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ItemUsedOnLocationTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- ItemUsedOnLocationTrigger
public static class ItemUsedOnLocationTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_298608_, Optional<ContextAwarePredicate> p_297399_) -
Method Summary
Modifier and TypeMethodDescriptionallayDropItemOnBlock
(LocationPredicate.Builder p_286325_, ItemPredicate.Builder p_286531_) itemUsedOnBlock
(LocationPredicate.Builder p_286808_, ItemPredicate.Builder p_286486_) private static ItemUsedOnLocationTrigger.TriggerInstance
itemUsedOnLocation
(LocationPredicate.Builder p_286740_, ItemPredicate.Builder p_286777_) boolean
matches
(LootContext p_286800_) placedBlock
(Block p_286530_) placedBlock
(LootItemCondition.Builder... p_286365_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
location
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_298608_, Optional<ContextAwarePredicate> p_297399_)
-
-
Method Details
-
placedBlock
-
placedBlock
public static Criterion<ItemUsedOnLocationTrigger.TriggerInstance> placedBlock(LootItemCondition.Builder... p_286365_) -
itemUsedOnLocation
private static ItemUsedOnLocationTrigger.TriggerInstance itemUsedOnLocation(LocationPredicate.Builder p_286740_, ItemPredicate.Builder p_286777_) -
itemUsedOnBlock
public static Criterion<ItemUsedOnLocationTrigger.TriggerInstance> itemUsedOnBlock(LocationPredicate.Builder p_286808_, ItemPredicate.Builder p_286486_) -
allayDropItemOnBlock
public static Criterion<ItemUsedOnLocationTrigger.TriggerInstance> allayDropItemOnBlock(LocationPredicate.Builder p_286325_, ItemPredicate.Builder p_286531_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-