Class PositionTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.PositionTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- PositionTrigger
public static class PositionTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private LocationPredicate
location
-
Constructor Summary
Constructors Constructor Description Instance(ResourceLocation p_i231661_1_, EntityPredicate.AndPredicate p_i231661_2_, LocationPredicate p_i231661_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PositionTrigger.Instance
located(LocationPredicate p_203932_0_)
boolean
matches(ServerWorld p_193204_1_, double p_193204_2_, double p_193204_4_, double p_193204_6_)
static PositionTrigger.Instance
raidWon()
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static PositionTrigger.Instance
sleptInBed()
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
location
private final LocationPredicate location
-
-
Constructor Detail
-
Instance
public Instance(ResourceLocation p_i231661_1_, EntityPredicate.AndPredicate p_i231661_2_, LocationPredicate p_i231661_3_)
-
-
Method Detail
-
located
public static PositionTrigger.Instance located(LocationPredicate p_203932_0_)
-
sleptInBed
public static PositionTrigger.Instance sleptInBed()
-
raidWon
public static PositionTrigger.Instance raidWon()
-
matches
public boolean matches(ServerWorld p_193204_1_, double p_193204_2_, double p_193204_4_, double p_193204_6_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-