Class OnKilledCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.OnKilledCriterion.Conditions
All Implemented Interfaces:
AbstractCriterion.Conditions, CriterionConditions
Enclosing class:
OnKilledCriterion

public static class OnKilledCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official ce$a
intermediary net/minecraft/class_2080$class_2083
named net/minecraft/advancement/criterion/OnKilledCriterion$Conditions
  • Field Details

    • entity

      private final Optional<LootContextPredicate> entity
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a:Ljava/util/Optional;
      intermediary field_9668 Lnet/minecraft/class_2080$class_2083;field_9668:Ljava/util/Optional;
      named entity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;entity:Ljava/util/Optional;
    • killingBlow

      private final Optional<DamageSourcePredicate> killingBlow
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b:Ljava/util/Optional;
      intermediary field_9667 Lnet/minecraft/class_2080$class_2083;field_9667:Ljava/util/Optional;
      named killingBlow Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;killingBlow:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> optional, Optional<LootContextPredicate> playerPredicate, Optional<DamageSourcePredicate> entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lce$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2080$class_2083;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(Optional<EntityPredicate> entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Ljava/util/Optional;)Lam;
      intermediary method_35248 Lnet/minecraft/class_2080$class_2083;method_35248(Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(EntityPredicate.Builder killedEntityPredicateBuilder)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Lbq$a;)Lam;
      intermediary method_8997 Lnet/minecraft/class_2080$class_2083;method_8997(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity()
      Mappings:
      Namespace Name Mixin selector
      official c Lce$a;c()Lam;
      intermediary method_8999 Lnet/minecraft/class_2080$class_2083;method_8999()Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity()Lnet/minecraft/advancement/AdvancementCriterion;
    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_35250 Lnet/minecraft/class_2080$class_2083;method_35250(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(EntityPredicate.Builder killedEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Lbq$a;Ljava/util/Optional;)Lam;
      intermediary method_35247 Lnet/minecraft/class_2080$class_2083;method_35247(Lnet/minecraft/class_2048$class_2049;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Ljava/util/Optional;Lbf$a;)Lam;
      intermediary method_35249 Lnet/minecraft/class_2080$class_2083;method_35249(Ljava/util/Optional;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Ljava/util/Optional;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createPlayerKilledEntity

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createPlayerKilledEntity(EntityPredicate.Builder killedEntityPredicateBuilder, DamageSourcePredicate.Builder killingBlowBuilder)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Lbq$a;Lbf$a;)Lam;
      intermediary method_9001 Lnet/minecraft/class_2080$class_2083;method_9001(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
      named createPlayerKilledEntity Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createPlayerKilledEntity(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createKillMobNearSculkCatalyst

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createKillMobNearSculkCatalyst()
      Mappings:
      Namespace Name Mixin selector
      official d Lce$a;d()Lam;
      intermediary method_42671 Lnet/minecraft/class_2080$class_2083;method_42671()Lnet/minecraft/class_175;
      named createKillMobNearSculkCatalyst Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createKillMobNearSculkCatalyst()Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(Optional<EntityPredicate> entity)
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b(Ljava/util/Optional;)Lam;
      intermediary method_35254 Lnet/minecraft/class_2080$class_2083;method_35254(Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(EntityPredicate.Builder killerEntityPredicateBuilder)
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b(Lbq$a;)Lam;
      intermediary method_35251 Lnet/minecraft/class_2080$class_2083;method_35251(Lnet/minecraft/class_2048$class_2049;)Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer()
      Mappings:
      Namespace Name Mixin selector
      official e Lce$a;e()Lam;
      intermediary method_8998 Lnet/minecraft/class_2080$class_2083;method_8998()Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer()Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(Optional<EntityPredicate> entity, Optional<DamageSourcePredicate> killingBlow)
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b(Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_35256 Lnet/minecraft/class_2080$class_2083;method_35256(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(EntityPredicate.Builder killerEntityPredicateBuilder, Optional<DamageSourcePredicate> killingBlow)
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b(Lbq$a;Ljava/util/Optional;)Lam;
      intermediary method_35253 Lnet/minecraft/class_2080$class_2083;method_35253(Lnet/minecraft/class_2048$class_2049;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(Optional<EntityPredicate> entity, DamageSourcePredicate.Builder damageSourcePredicateBuilder)
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b(Ljava/util/Optional;Lbf$a;)Lam;
      intermediary method_35255 Lnet/minecraft/class_2080$class_2083;method_35255(Ljava/util/Optional;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Ljava/util/Optional;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • createEntityKilledPlayer

      public static AdvancementCriterion<OnKilledCriterion.Conditions> createEntityKilledPlayer(EntityPredicate.Builder killerEntityPredicateBuilder, DamageSourcePredicate.Builder damageSourcePredicateBuilder)
      Mappings:
      Namespace Name Mixin selector
      official b Lce$a;b(Lbq$a;Lbf$a;)Lam;
      intermediary method_35252 Lnet/minecraft/class_2080$class_2083;method_35252(Lnet/minecraft/class_2048$class_2049;Lnet/minecraft/class_2022$class_2023;)Lnet/minecraft/class_175;
      named createEntityKilledPlayer Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;createEntityKilledPlayer(Lnet/minecraft/predicate/entity/EntityPredicate$Builder;Lnet/minecraft/predicate/entity/DamageSourcePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • test

      public boolean test(ServerPlayerEntity player, LootContext entity, DamageSource killingBlow)
      Mappings:
      Namespace Name Mixin selector
      official a Lce$a;a(Lakr;Lecq;Lbho;)Z
      intermediary method_9000 Lnet/minecraft/class_2080$class_2083;method_9000(Lnet/minecraft/class_3222;Lnet/minecraft/class_47;Lnet/minecraft/class_1282;)Z
      named test Lnet/minecraft/advancement/criterion/OnKilledCriterion$Conditions;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/entity/damage/DamageSource;)Z
    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;