Class ItemUsedOnLocationTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ItemUsedOnLocationTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- ItemUsedOnLocationTrigger
public static class ItemUsedOnLocationTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ResourceLocation p_286265_, ContextAwarePredicate p_286333_, ContextAwarePredicate p_286319_) -
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_, ResourceLocation p_286742_) boolean
matches
(LootContext p_286800_) placedBlock
(Block p_286530_) placedBlock
(LootItemCondition.Builder... p_286365_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_286870_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
location
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ResourceLocation p_286265_, ContextAwarePredicate p_286333_, ContextAwarePredicate p_286319_)
-
-
Method Details
-
placedBlock
-
placedBlock
public static ItemUsedOnLocationTrigger.TriggerInstance placedBlock(LootItemCondition.Builder... p_286365_) -
itemUsedOnLocation
private static ItemUsedOnLocationTrigger.TriggerInstance itemUsedOnLocation(LocationPredicate.Builder p_286740_, ItemPredicate.Builder p_286777_, ResourceLocation p_286742_) -
itemUsedOnBlock
public static ItemUsedOnLocationTrigger.TriggerInstance itemUsedOnBlock(LocationPredicate.Builder p_286808_, ItemPredicate.Builder p_286486_) -
allayDropItemOnBlock
public static ItemUsedOnLocationTrigger.TriggerInstance allayDropItemOnBlock(LocationPredicate.Builder p_286325_, ItemPredicate.Builder p_286531_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-