Class OnKilledCriterion

All Implemented Interfaces:
Criterion<OnKilledCriterion.Conditions>

public class OnKilledCriterion extends AbstractCriterion<OnKilledCriterion.Conditions>
Mappings:
Namespace Name
official ce
intermediary net/minecraft/class_2080
named net/minecraft/advancement/criterion/OnKilledCriterion
  • Constructor Details

    • OnKilledCriterion

      public OnKilledCriterion()
  • Method Details

    • conditionsFromJson

      public OnKilledCriterion.Conditions conditionsFromJson(com.google.gson.JsonObject jsonObject, Optional<LootContextPredicate> optional, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<OnKilledCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lce;a(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lbg;)Lce$a;
      intermediary method_8989 Lnet/minecraft/class_2080;method_8989(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2080$class_2083;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/OnKilledCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Ljava/util/Optional;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;
    • trigger

      public void trigger(ServerPlayerEntity player, Entity entity, DamageSource killingDamage)
      Mappings:
      Namespace Name Mixin selector
      official a Lce;a(Lakr;Lbiq;Lbho;)V
      intermediary method_8990 Lnet/minecraft/class_2080;method_8990(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;)V
      named trigger Lnet/minecraft/advancement/criterion/OnKilledCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;)V