Class EntityHurtPlayerCriterion

All Implemented Interfaces:
Criterion<EntityHurtPlayerCriterion.Conditions>

public class EntityHurtPlayerCriterion extends AbstractCriterion<EntityHurtPlayerCriterion.Conditions>
Mappings:
Namespace Name
official bp
intermediary net/minecraft/class_2044
named net/minecraft/advancement/criterion/EntityHurtPlayerCriterion
  • Constructor Details

    • EntityHurtPlayerCriterion

      public EntityHurtPlayerCriterion()
  • Method Details

    • conditionsFromJson

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

      public void trigger(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Lakr;Lbho;FFZ)V
      intermediary method_22467 Lnet/minecraft/class_2044;method_22467(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;FFZ)V
      named trigger Lnet/minecraft/advancement/criterion/EntityHurtPlayerCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;FFZ)V