Package net.minecraft.predicate
Class DamagePredicate
java.lang.Object
net.minecraft.predicate.DamagePredicate
public class DamagePredicate extends Object
- Mappings:
Namespace Name official av
intermediary net/minecraft/class_2019
named net/minecraft/predicate/DamagePredicate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DamagePredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static DamagePredicate
ANY
private Boolean
blocked
private NumberRange.FloatRange
dealt
private EntityPredicate
sourceEntity
private NumberRange.FloatRange
taken
private DamageSourcePredicate
type
-
Constructor Summary
Constructors Constructor Description DamagePredicate()
DamagePredicate(NumberRange.FloatRange dealt, NumberRange.FloatRange taken, EntityPredicate sourceEntity, Boolean blocked, DamageSourcePredicate type)
-
Method Summary
Modifier and Type Method Description static DamagePredicate
fromJson(JsonElement json)
boolean
test(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
JsonElement
toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lav;a:Lav;
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
- Mappings:
Namespace Name Mixin selector official b
Lav;b:Lbz$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
- Mappings:
Namespace Name Mixin selector official c
Lav;c:Lbz$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
- Mappings:
Namespace Name Mixin selector official d
Lav;d:Lbg;
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
- Mappings:
Namespace Name Mixin selector official e
Lav;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
- Mappings:
Namespace Name Mixin selector official f
Lav;f:Law;
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 Boolean blocked, DamageSourcePredicate type)- Mappings:
Namespace Name Mixin selector official <init>
Lav;<init>(Lbz$c;Lbz$c;Lbg;Ljava/lang/Boolean;Law;)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
Lav;a(Laaw;Laqf;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
- Mappings:
Namespace Name Mixin selector official a
Lav;a(Lcom/google/gson/JsonElement;)Lav;
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
- Mappings:
Namespace Name Mixin selector official a
Lav;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;
-