Class DamagePredicate

java.lang.Object
net.minecraft.predicate.DamagePredicate

public class DamagePredicate extends Object
Mappings:
Namespace Name
official bc
intermediary net/minecraft/class_2019
named net/minecraft/predicate/DamagePredicate
  • Field Details

    • ANY

      public static final DamagePredicate ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lbc;a:Lbc;
      intermediary field_9520 Lnet/minecraft/class_2019;field_9520:Lnet/minecraft/class_2019;
      named ANY Lnet/minecraft/predicate/DamagePredicate;ANY:Lnet/minecraft/predicate/DamagePredicate;
    • dealt

      private final NumberRange.FloatRange dealt
      Mappings:
      Namespace Name Mixin selector
      official b Lbc;b:Lcj$c;
      intermediary field_9523 Lnet/minecraft/class_2019;field_9523:Lnet/minecraft/class_2096$class_2099;
      named dealt Lnet/minecraft/predicate/DamagePredicate;dealt:Lnet/minecraft/predicate/NumberRange$FloatRange;
    • taken

      private final NumberRange.FloatRange taken
      Mappings:
      Namespace Name Mixin selector
      official c Lbc;c:Lcj$c;
      intermediary field_9524 Lnet/minecraft/class_2019;field_9524:Lnet/minecraft/class_2096$class_2099;
      named taken Lnet/minecraft/predicate/DamagePredicate;taken:Lnet/minecraft/predicate/NumberRange$FloatRange;
    • sourceEntity

      private final EntityPredicate sourceEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lbc;d:Lbo;
      intermediary field_9521 Lnet/minecraft/class_2019;field_9521:Lnet/minecraft/class_2048;
      named sourceEntity Lnet/minecraft/predicate/DamagePredicate;sourceEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
    • blocked

      @Nullable private final @Nullable Boolean blocked
      Mappings:
      Namespace Name Mixin selector
      official e Lbc;e:Ljava/lang/Boolean;
      intermediary field_9522 Lnet/minecraft/class_2019;field_9522:Ljava/lang/Boolean;
      named blocked Lnet/minecraft/predicate/DamagePredicate;blocked:Ljava/lang/Boolean;
    • type

      private final DamageSourcePredicate type
      Mappings:
      Namespace Name Mixin selector
      official f Lbc;f:Lbd;
      intermediary field_9525 Lnet/minecraft/class_2019;field_9525:Lnet/minecraft/class_2022;
      named type Lnet/minecraft/predicate/DamagePredicate;type:Lnet/minecraft/predicate/entity/DamageSourcePredicate;
  • Constructor Details

    • DamagePredicate

      public DamagePredicate()
    • DamagePredicate

      public DamagePredicate(NumberRange.FloatRange dealt, NumberRange.FloatRange taken, EntityPredicate sourceEntity, @Nullable @Nullable Boolean blocked, DamageSourcePredicate type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbc;<init>(Lcj$c;Lcj$c;Lbo;Ljava/lang/Boolean;Lbd;)V
      intermediary <init> Lnet/minecraft/class_2019;<init>(Lnet/minecraft/class_2096$class_2099;Lnet/minecraft/class_2096$class_2099;Lnet/minecraft/class_2048;Ljava/lang/Boolean;Lnet/minecraft/class_2022;)V
      named <init> Lnet/minecraft/predicate/DamagePredicate;<init>(Lnet/minecraft/predicate/NumberRange$FloatRange;Lnet/minecraft/predicate/NumberRange$FloatRange;Lnet/minecraft/predicate/entity/EntityPredicate;Ljava/lang/Boolean;Lnet/minecraft/predicate/entity/DamageSourcePredicate;)V
  • Method Details

    • test

      public boolean test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
      Mappings:
      Namespace Name Mixin selector
      official a Lbc;a(Ladd;Lavw;FFZ)Z
      intermediary method_8838 Lnet/minecraft/class_2019;method_8838(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;FFZ)Z
      named test Lnet/minecraft/predicate/DamagePredicate;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;FFZ)Z
    • fromJson

      public static DamagePredicate fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lbc;a(Lcom/google/gson/JsonElement;)Lbc;
      intermediary method_8839 Lnet/minecraft/class_2019;method_8839(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2019;
      named fromJson Lnet/minecraft/predicate/DamagePredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/DamagePredicate;
    • toJson

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official a Lbc;a()Lcom/google/gson/JsonElement;
      intermediary method_8840 Lnet/minecraft/class_2019;method_8840()Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/predicate/DamagePredicate;toJson()Lcom/google/gson/JsonElement;