Class KilledTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.KilledTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- KilledTrigger
public static class KilledTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.AndPredicate
entityPredicate
private DamageSourcePredicate
killingBlow
-
Constructor Summary
Constructors Constructor Description Instance(ResourceLocation p_i231630_1_, EntityPredicate.AndPredicate p_i231630_2_, EntityPredicate.AndPredicate p_i231630_3_, DamageSourcePredicate p_i231630_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KilledTrigger.Instance
entityKilledPlayer()
boolean
matches(ServerPlayerEntity p_235050_1_, LootContext p_235050_2_, DamageSource p_235050_3_)
static KilledTrigger.Instance
playerKilledEntity()
static KilledTrigger.Instance
playerKilledEntity(EntityPredicate.Builder p_203928_0_)
static KilledTrigger.Instance
playerKilledEntity(EntityPredicate.Builder p_203929_0_, DamageSourcePredicate.Builder p_203929_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
entityPredicate
private final EntityPredicate.AndPredicate entityPredicate
-
killingBlow
private final DamageSourcePredicate killingBlow
-
-
Constructor Detail
-
Instance
public Instance(ResourceLocation p_i231630_1_, EntityPredicate.AndPredicate p_i231630_2_, EntityPredicate.AndPredicate p_i231630_3_, DamageSourcePredicate p_i231630_4_)
-
-
Method Detail
-
playerKilledEntity
public static KilledTrigger.Instance playerKilledEntity(EntityPredicate.Builder p_203928_0_)
-
playerKilledEntity
public static KilledTrigger.Instance playerKilledEntity()
-
playerKilledEntity
public static KilledTrigger.Instance playerKilledEntity(EntityPredicate.Builder p_203929_0_, DamageSourcePredicate.Builder p_203929_1_)
-
entityKilledPlayer
public static KilledTrigger.Instance entityKilledPlayer()
-
matches
public boolean matches(ServerPlayerEntity p_235050_1_, LootContext p_235050_2_, DamageSource p_235050_3_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-