Package net.minecraft.predicate
Class DamagePredicate
java.lang.Object
net.minecraft.predicate.DamagePredicate
- Mappings:
Namespace Name official bb
intermediary net/minecraft/class_2019
named net/minecraft/predicate/DamagePredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic DamagePredicate
private Boolean
private NumberRange.FloatRange
private EntityPredicate
private NumberRange.FloatRange
private 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
Lbb;a:Lbb;
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
Lbb;b:Lch$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
Lbb;c:Lch$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
Lbb;d:Lbm;
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
Lbb;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
Lbb;f:Lbc;
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>
Lbb;<init>(Lch$c;Lch$c;Lbm;Ljava/lang/Boolean;Lbc;)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
Lbb;a(Labs;Lasp;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
Lbb;a(Lcom/google/gson/JsonElement;)Lbb;
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
Lbb;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;
-