Package net.minecraft.predicate.entity
Class DamageSourcePredicate
java.lang.Object
net.minecraft.predicate.entity.DamageSourcePredicate
- Mappings:
Namespace Name official bc
intermediary net/minecraft/class_2022
named net/minecraft/predicate/entity/DamageSourcePredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate
static final DamageSourcePredicate
private final EntityPredicate
private final List<TagPredicate<DamageType>>
-
Constructor Summary
ConstructorDescriptionDamageSourcePredicate
(List<TagPredicate<DamageType>> tagPredicates, EntityPredicate directEntity, EntityPredicate sourceEntity) -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSourcePredicate
fromJson
(@Nullable JsonElement json) boolean
test
(ServerPlayerEntity player, DamageSource damageSource) boolean
test
(ServerWorld world, Vec3d pos, DamageSource damageSource) toJson()
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lbc;a:Lbc;
intermediary field_9533
Lnet/minecraft/class_2022;field_9533:Lnet/minecraft/class_2022;
named EMPTY
Lnet/minecraft/predicate/entity/DamageSourcePredicate;EMPTY:Lnet/minecraft/predicate/entity/DamageSourcePredicate;
-
tagPredicates
- Mappings:
Namespace Name Mixin selector official b
Lbc;b:Ljava/util/List;
intermediary field_42272
Lnet/minecraft/class_2022;field_42272:Ljava/util/List;
named tagPredicates
Lnet/minecraft/predicate/entity/DamageSourcePredicate;tagPredicates:Ljava/util/List;
-
directEntity
- Mappings:
Namespace Name Mixin selector official c
Lbc;c:Lbn;
intermediary field_9534
Lnet/minecraft/class_2022;field_9534:Lnet/minecraft/class_2048;
named directEntity
Lnet/minecraft/predicate/entity/DamageSourcePredicate;directEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
-
sourceEntity
- Mappings:
Namespace Name Mixin selector official d
Lbc;d:Lbn;
intermediary field_9539
Lnet/minecraft/class_2022;field_9539:Lnet/minecraft/class_2048;
named sourceEntity
Lnet/minecraft/predicate/entity/DamageSourcePredicate;sourceEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
-
-
Constructor Details
-
DamageSourcePredicate
public DamageSourcePredicate(List<TagPredicate<DamageType>> tagPredicates, EntityPredicate directEntity, EntityPredicate sourceEntity) - Mappings:
Namespace Name Mixin selector official <init>
Lbc;<init>(Ljava/util/List;Lbn;Lbn;)V
intermediary <init>
Lnet/minecraft/class_2022;<init>(Ljava/util/List;Lnet/minecraft/class_2048;Lnet/minecraft/class_2048;)V
named <init>
Lnet/minecraft/predicate/entity/DamageSourcePredicate;<init>(Ljava/util/List;Lnet/minecraft/predicate/entity/EntityPredicate;Lnet/minecraft/predicate/entity/EntityPredicate;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbc;a(Laiq;Lbem;)Z
intermediary method_8847
Lnet/minecraft/class_2022;method_8847(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;)Z
named test
Lnet/minecraft/predicate/entity/DamageSourcePredicate;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;)Z
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbc;a(Laip;Lede;Lbem;)Z
intermediary method_8845
Lnet/minecraft/class_2022;method_8845(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1282;)Z
named test
Lnet/minecraft/predicate/entity/DamageSourcePredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/damage/DamageSource;)Z
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Lbc;a(Lcom/google/gson/JsonElement;)Lbc;
intermediary method_8846
Lnet/minecraft/class_2022;method_8846(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2022;
named fromJson
Lnet/minecraft/predicate/entity/DamageSourcePredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/DamageSourcePredicate;
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lbc;a()Lcom/google/gson/JsonElement;
intermediary method_8848
Lnet/minecraft/class_2022;method_8848()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/predicate/entity/DamageSourcePredicate;toJson()Lcom/google/gson/JsonElement;
-