Class PlayerHurtEntityCriterion.Conditions

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

public static class PlayerHurtEntityCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cp$a
intermediary net/minecraft/class_2115$class_2117
named net/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions
  • Field Details

    • damage

      private final Optional<DamagePredicate> damage
      Mappings:
      Namespace Name Mixin selector
      official a Lcp$a;a:Ljava/util/Optional;
      intermediary field_9736 Lnet/minecraft/class_2115$class_2117;field_9736:Ljava/util/Optional;
      named damage Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;damage:Ljava/util/Optional;
    • entity

      private final Optional<LootContextPredicate> entity
      Mappings:
      Namespace Name Mixin selector
      official b Lcp$a;b:Ljava/util/Optional;
      intermediary field_9737 Lnet/minecraft/class_2115$class_2117;field_9737:Ljava/util/Optional;
      named entity Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;entity:Ljava/util/Optional;
  • Constructor Details

    • Conditions

      public Conditions(Optional<LootContextPredicate> playerPredicate, Optional<DamagePredicate> damage, Optional<LootContextPredicate> entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcp$a;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_2115$class_2117;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
      named <init> Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • create

      Mappings:
      Namespace Name Mixin selector
      official c Lcp$a;c()Lam;
      intermediary method_35298 Lnet/minecraft/class_2115$class_2117;method_35298()Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create()Lnet/minecraft/advancement/AdvancementCriterion;
    • method_35296

      Mappings:
      Namespace Name Mixin selector
      official a Lcp$a;a(Ljava/util/Optional;)Lam;
      intermediary method_35296 Lnet/minecraft/class_2115$class_2117;method_35296(Ljava/util/Optional;)Lnet/minecraft/class_175;
      named method_35296 Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;method_35296(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lcp$a;a(Lbe$a;)Lam;
      intermediary method_35297 Lnet/minecraft/class_2115$class_2117;method_35297(Lnet/minecraft/class_2019$class_2020;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate$Builder;)Lnet/minecraft/advancement/AdvancementCriterion;
    • create

      Mappings:
      Namespace Name Mixin selector
      official b Lcp$a;b(Ljava/util/Optional;)Lam;
      intermediary method_35295 Lnet/minecraft/class_2115$class_2117;method_35295(Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lcp$a;a(Ljava/util/Optional;Ljava/util/Optional;)Lam;
      intermediary method_35294 Lnet/minecraft/class_2115$class_2117;method_35294(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • create

      Mappings:
      Namespace Name Mixin selector
      official a Lcp$a;a(Lbe$a;Ljava/util/Optional;)Lam;
      intermediary method_9103 Lnet/minecraft/class_2115$class_2117;method_9103(Lnet/minecraft/class_2019$class_2020;Ljava/util/Optional;)Lnet/minecraft/class_175;
      named create Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;create(Lnet/minecraft/predicate/DamagePredicate$Builder;Ljava/util/Optional;)Lnet/minecraft/advancement/AdvancementCriterion;
    • matches

      public boolean matches(ServerPlayerEntity player, LootContext entity, DamageSource damageSource, float dealt, float taken, boolean blocked)
      Mappings:
      Namespace Name Mixin selector
      official a Lcp$a;a(Lakr;Lecq;Lbho;FFZ)Z
      intermediary method_9104 Lnet/minecraft/class_2115$class_2117;method_9104(Lnet/minecraft/class_3222;Lnet/minecraft/class_47;Lnet/minecraft/class_1282;FFZ)Z
      named matches Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion$Conditions;matches(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/loot/context/LootContext;Lnet/minecraft/entity/damage/DamageSource;FFZ)Z
    • toJson

      public 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;