Class KilledTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.KilledTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- KilledTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ContextAwarePredicate>
private final Optional<DamageSourcePredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_300998_, Optional<ContextAwarePredicate> p_300514_, Optional<DamageSourcePredicate> p_297546_) -
Method Summary
Modifier and TypeMethodDescriptionentityKilledPlayer
(Optional<EntityPredicate> p_300543_) entityKilledPlayer
(Optional<EntityPredicate> p_297719_, Optional<DamageSourcePredicate> p_298112_) entityKilledPlayer
(Optional<EntityPredicate> p_297520_, DamageSourcePredicate.Builder p_299317_) entityKilledPlayer
(EntityPredicate.Builder p_300131_) entityKilledPlayer
(EntityPredicate.Builder p_298074_, Optional<DamageSourcePredicate> p_300879_) entityKilledPlayer
(EntityPredicate.Builder p_152122_, DamageSourcePredicate.Builder p_299947_) boolean
matches
(ServerPlayer p_48131_, LootContext p_48132_, DamageSource p_48133_) playerKilledEntity
(Optional<EntityPredicate> p_299523_) playerKilledEntity
(Optional<EntityPredicate> p_299572_, Optional<DamageSourcePredicate> p_297245_) playerKilledEntity
(Optional<EntityPredicate> p_300641_, DamageSourcePredicate.Builder p_300954_) playerKilledEntity
(EntityPredicate.Builder p_48137_) playerKilledEntity
(EntityPredicate.Builder p_152106_, Optional<DamageSourcePredicate> p_297683_) playerKilledEntity
(EntityPredicate.Builder p_300999_, DamageSourcePredicate.Builder p_298768_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
entityPredicate
-
killingBlow
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_300998_, Optional<ContextAwarePredicate> p_300514_, Optional<DamageSourcePredicate> p_297546_)
-
-
Method Details
-
playerKilledEntity
public static Criterion<KilledTrigger.TriggerInstance> playerKilledEntity(Optional<EntityPredicate> p_299523_) -
playerKilledEntity
public static Criterion<KilledTrigger.TriggerInstance> playerKilledEntity(EntityPredicate.Builder p_48137_) -
playerKilledEntity
-
playerKilledEntity
public static Criterion<KilledTrigger.TriggerInstance> playerKilledEntity(Optional<EntityPredicate> p_299572_, Optional<DamageSourcePredicate> p_297245_) -
playerKilledEntity
public static Criterion<KilledTrigger.TriggerInstance> playerKilledEntity(EntityPredicate.Builder p_152106_, Optional<DamageSourcePredicate> p_297683_) -
playerKilledEntity
public static Criterion<KilledTrigger.TriggerInstance> playerKilledEntity(Optional<EntityPredicate> p_300641_, DamageSourcePredicate.Builder p_300954_) -
playerKilledEntity
public static Criterion<KilledTrigger.TriggerInstance> playerKilledEntity(EntityPredicate.Builder p_300999_, DamageSourcePredicate.Builder p_298768_) -
playerKilledEntityNearSculkCatalyst
-
entityKilledPlayer
public static Criterion<KilledTrigger.TriggerInstance> entityKilledPlayer(Optional<EntityPredicate> p_300543_) -
entityKilledPlayer
public static Criterion<KilledTrigger.TriggerInstance> entityKilledPlayer(EntityPredicate.Builder p_300131_) -
entityKilledPlayer
-
entityKilledPlayer
public static Criterion<KilledTrigger.TriggerInstance> entityKilledPlayer(Optional<EntityPredicate> p_297719_, Optional<DamageSourcePredicate> p_298112_) -
entityKilledPlayer
public static Criterion<KilledTrigger.TriggerInstance> entityKilledPlayer(EntityPredicate.Builder p_298074_, Optional<DamageSourcePredicate> p_300879_) -
entityKilledPlayer
public static Criterion<KilledTrigger.TriggerInstance> entityKilledPlayer(Optional<EntityPredicate> p_297520_, DamageSourcePredicate.Builder p_299317_) -
entityKilledPlayer
public static Criterion<KilledTrigger.TriggerInstance> entityKilledPlayer(EntityPredicate.Builder p_152122_, DamageSourcePredicate.Builder p_299947_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-