Class PlayerHurtEntityCriterion

All Implemented Interfaces:
Criterion<PlayerHurtEntityCriterion.Conditions>

public class PlayerHurtEntityCriterion extends AbstractCriterion<PlayerHurtEntityCriterion.Conditions>
Mappings:
Namespace Name
official cp
intermediary net/minecraft/class_2115
named net/minecraft/advancement/criterion/PlayerHurtEntityCriterion
  • Constructor Details

    • PlayerHurtEntityCriterion

      public PlayerHurtEntityCriterion()
  • Method Details

    • conditionsFromJson

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

      public void trigger(ServerPlayerEntity player, Entity entity, DamageSource damage, float dealt, float taken, boolean blocked)
      Mappings:
      Namespace Name Mixin selector
      official a Lcp;a(Lakr;Lbiq;Lbho;FFZ)V
      intermediary method_9097 Lnet/minecraft/class_2115;method_9097(Lnet/minecraft/class_3222;Lnet/minecraft/class_1297;Lnet/minecraft/class_1282;FFZ)V
      named trigger Lnet/minecraft/advancement/criterion/PlayerHurtEntityCriterion;trigger(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/damage/DamageSource;FFZ)V