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_298789_, Optional<ContextAwarePredicate> p_298316_) -
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_301158_) placedBlock
(LootItemCondition.Builder... p_301013_) 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_298789_, Optional<ContextAwarePredicate> p_298316_)
-
-
Method Details
-
placedBlock
-
placedBlock
public static Criterion<ItemUsedOnLocationTrigger.TriggerInstance> placedBlock(LootItemCondition.Builder... p_301013_) -
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
-