Class KilledTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.KilledTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- KilledTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate.AndPredicate
private final DamageSourcePredicate
-
Constructor Summary
ConstructorDescriptionInstance
(ResourceLocation p_i231630_1_, EntityPredicate.AndPredicate p_i231630_2_, EntityPredicate.AndPredicate p_i231630_3_, DamageSourcePredicate p_i231630_4_) -
Method Summary
Modifier and TypeMethodDescriptionstatic KilledTrigger.Instance
boolean
matches
(ServerPlayerEntity p_235050_1_, LootContext p_235050_2_, DamageSource p_235050_3_) static KilledTrigger.Instance
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 Details
-
entityPredicate
-
killingBlow
-
-
Constructor Details
-
Instance
public Instance(ResourceLocation p_i231630_1_, EntityPredicate.AndPredicate p_i231630_2_, EntityPredicate.AndPredicate p_i231630_3_, DamageSourcePredicate p_i231630_4_)
-
-
Method Details
-
playerKilledEntity
-
playerKilledEntity
-
playerKilledEntity
public static KilledTrigger.Instance playerKilledEntity(EntityPredicate.Builder p_203929_0_, DamageSourcePredicate.Builder p_203929_1_) -
entityKilledPlayer
-
matches
public boolean matches(ServerPlayerEntity p_235050_1_, LootContext p_235050_2_, DamageSource p_235050_3_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-