Class OnKilledCriterion

All Implemented Interfaces:
Criterion<OnKilledCriterion.Conditions>

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

    • id

      final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lcc;a:Lacq;
      intermediary field_9661 Lnet/minecraft/class_2080;field_9661:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/advancement/criterion/OnKilledCriterion;id:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • OnKilledCriterion

      public OnKilledCriterion(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcc;<init>(Lacq;)V
      intermediary <init> Lnet/minecraft/class_2080;<init>(Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/advancement/criterion/OnKilledCriterion;<init>(Lnet/minecraft/util/Identifier;)V
  • Method Details

    • getId

      public Identifier getId()
      Mappings:
      Namespace Name Mixin selector
      official a Lal;a()Lacq;
      intermediary method_794 Lnet/minecraft/class_179;method_794()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/advancement/criterion/Criterion;getId()Lnet/minecraft/util/Identifier;
    • conditionsFromJson

      public OnKilledCriterion.Conditions conditionsFromJson(JsonObject jsonObject, LootContextPredicate lootContextPredicate, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
      Specified by:
      conditionsFromJson in class AbstractCriterion<OnKilledCriterion.Conditions>
      Mappings:
      Namespace Name Mixin selector
      official a Lcc;a(Lcom/google/gson/JsonObject;Lba;Lbe;)Lcc$a;
      intermediary method_8989 Lnet/minecraft/class_2080;method_8989(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5258;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2080$class_2083;
      named conditionsFromJson Lnet/minecraft/advancement/criterion/OnKilledCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/LootContextPredicate;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 Lcc;a(Laie;Lbfd;Lbei;)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