Package net.minecraft.predicate
Class DamagePredicate
java.lang.Object
net.minecraft.predicate.DamagePredicate
- Mappings:
Namespace Name official az
intermediary net/minecraft/class_2019
named net/minecraft/predicate/DamagePredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DamagePredicate
private final NumberRange.FloatRange
private final EntityPredicate
private final NumberRange.FloatRange
private final DamageSourcePredicate
-
Constructor Summary
ConstructorDescriptionDamagePredicate
(NumberRange.FloatRange dealt, NumberRange.FloatRange taken, EntityPredicate sourceEntity, @Nullable Boolean blocked, DamageSourcePredicate type) -
Method Summary
Modifier and TypeMethodDescriptionstatic DamagePredicate
fromJson
(@Nullable JsonElement json) boolean
test
(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked) toJson()
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Laz;a:Laz;
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
Laz;b:Lcg$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
Laz;c:Lcg$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
Laz;d:Lbl;
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
Laz;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
Laz;f:Lba;
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>
Laz;<init>(Lcg$c;Lcg$c;Lbl;Ljava/lang/Boolean;Lba;)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
Laz;a(Lahn;Lbcz;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
Laz;a(Lcom/google/gson/JsonElement;)Laz;
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
Laz;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;
-