Package net.minecraft.predicate.entity
Class DamageSourcePredicate
java.lang.Object
net.minecraft.predicate.entity.DamageSourcePredicate
- Mappings:
Namespace Name official bcintermediary net/minecraft/class_2022named net/minecraft/predicate/entity/DamageSourcePredicate
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Booleanprivate Booleanprivate Booleanprivate EntityPredicatestatic DamageSourcePredicateprivate Booleanprivate Booleanprivate Booleanprivate Booleanprivate Booleanprivate EntityPredicate -
Constructor Summary
ConstructorsConstructorDescriptionDamageSourcePredicate(@Nullable Boolean isProjectile, @Nullable Boolean isExplosion, @Nullable Boolean bypassesArmor, @Nullable Boolean bypassesInvulnerability, @Nullable Boolean bypassesMagic, @Nullable Boolean isFire, @Nullable Boolean isMagic, @Nullable Boolean isLightning, EntityPredicate directEntity, EntityPredicate sourceEntity) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddProperty(JsonObject json, String key, @Nullable Boolean value)static DamageSourcePredicatefromJson(@Nullable JsonElement json)getBoolean(JsonObject obj, String name)booleantest(ServerPlayerEntity player, DamageSource damageSource)booleantest(ServerWorld world, Vec3d pos, DamageSource damageSource)toJson()
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official aLbc;a:Lbc;intermediary field_9533Lnet/minecraft/class_2022;field_9533:Lnet/minecraft/class_2022;named EMPTYLnet/minecraft/predicate/entity/DamageSourcePredicate;EMPTY:Lnet/minecraft/predicate/entity/DamageSourcePredicate;
-
isProjectile
- Mappings:
Namespace Name Mixin selector official bLbc;b:Ljava/lang/Boolean;intermediary field_9535Lnet/minecraft/class_2022;field_9535:Ljava/lang/Boolean;named isProjectileLnet/minecraft/predicate/entity/DamageSourcePredicate;isProjectile:Ljava/lang/Boolean;
-
isExplosion
- Mappings:
Namespace Name Mixin selector official cLbc;c:Ljava/lang/Boolean;intermediary field_9536Lnet/minecraft/class_2022;field_9536:Ljava/lang/Boolean;named isExplosionLnet/minecraft/predicate/entity/DamageSourcePredicate;isExplosion:Ljava/lang/Boolean;
-
bypassesArmor
- Mappings:
Namespace Name Mixin selector official dLbc;d:Ljava/lang/Boolean;intermediary field_9532Lnet/minecraft/class_2022;field_9532:Ljava/lang/Boolean;named bypassesArmorLnet/minecraft/predicate/entity/DamageSourcePredicate;bypassesArmor:Ljava/lang/Boolean;
-
bypassesInvulnerability
- Mappings:
Namespace Name Mixin selector official eLbc;e:Ljava/lang/Boolean;intermediary field_9531Lnet/minecraft/class_2022;field_9531:Ljava/lang/Boolean;named bypassesInvulnerabilityLnet/minecraft/predicate/entity/DamageSourcePredicate;bypassesInvulnerability:Ljava/lang/Boolean;
-
bypassesMagic
- Mappings:
Namespace Name Mixin selector official fLbc;f:Ljava/lang/Boolean;intermediary field_9537Lnet/minecraft/class_2022;field_9537:Ljava/lang/Boolean;named bypassesMagicLnet/minecraft/predicate/entity/DamageSourcePredicate;bypassesMagic:Ljava/lang/Boolean;
-
isFire
- Mappings:
Namespace Name Mixin selector official gLbc;g:Ljava/lang/Boolean;intermediary field_9540Lnet/minecraft/class_2022;field_9540:Ljava/lang/Boolean;named isFireLnet/minecraft/predicate/entity/DamageSourcePredicate;isFire:Ljava/lang/Boolean;
-
isMagic
- Mappings:
Namespace Name Mixin selector official hLbc;h:Ljava/lang/Boolean;intermediary field_9541Lnet/minecraft/class_2022;field_9541:Ljava/lang/Boolean;named isMagicLnet/minecraft/predicate/entity/DamageSourcePredicate;isMagic:Ljava/lang/Boolean;
-
isLightning
- Mappings:
Namespace Name Mixin selector official iLbc;i:Ljava/lang/Boolean;intermediary field_9538Lnet/minecraft/class_2022;field_9538:Ljava/lang/Boolean;named isLightningLnet/minecraft/predicate/entity/DamageSourcePredicate;isLightning:Ljava/lang/Boolean;
-
directEntity
- Mappings:
Namespace Name Mixin selector official jLbc;j:Lbm;intermediary field_9534Lnet/minecraft/class_2022;field_9534:Lnet/minecraft/class_2048;named directEntityLnet/minecraft/predicate/entity/DamageSourcePredicate;directEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
-
sourceEntity
- Mappings:
Namespace Name Mixin selector official kLbc;k:Lbm;intermediary field_9539Lnet/minecraft/class_2022;field_9539:Lnet/minecraft/class_2048;named sourceEntityLnet/minecraft/predicate/entity/DamageSourcePredicate;sourceEntity:Lnet/minecraft/predicate/entity/EntityPredicate;
-
-
Constructor Details
-
DamageSourcePredicate
public DamageSourcePredicate(@Nullable @Nullable Boolean isProjectile, @Nullable @Nullable Boolean isExplosion, @Nullable @Nullable Boolean bypassesArmor, @Nullable @Nullable Boolean bypassesInvulnerability, @Nullable @Nullable Boolean bypassesMagic, @Nullable @Nullable Boolean isFire, @Nullable @Nullable Boolean isMagic, @Nullable @Nullable Boolean isLightning, EntityPredicate directEntity, EntityPredicate sourceEntity)- Mappings:
Namespace Name Mixin selector official <init>Lbc;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lbm;Lbm;)Vintermediary <init>Lnet/minecraft/class_2022;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lnet/minecraft/class_2048;Lnet/minecraft/class_2048;)Vnamed <init>Lnet/minecraft/predicate/entity/DamageSourcePredicate;<init>(Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Ljava/lang/Boolean;Lnet/minecraft/predicate/entity/EntityPredicate;Lnet/minecraft/predicate/entity/EntityPredicate;)V
-
-
Method Details
-
test
- Mappings:
Namespace Name Mixin selector official aLbc;a(Labs;Lasp;)Zintermediary method_8847Lnet/minecraft/class_2022;method_8847(Lnet/minecraft/class_3222;Lnet/minecraft/class_1282;)Znamed testLnet/minecraft/predicate/entity/DamageSourcePredicate;test(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/entity/damage/DamageSource;)Z
-
test
- Mappings:
Namespace Name Mixin selector official aLbc;a(Labr;Ldna;Lasp;)Zintermediary method_8845Lnet/minecraft/class_2022;method_8845(Lnet/minecraft/class_3218;Lnet/minecraft/class_243;Lnet/minecraft/class_1282;)Znamed testLnet/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 aLbc;a(Lcom/google/gson/JsonElement;)Lbc;intermediary method_8846Lnet/minecraft/class_2022;method_8846(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2022;named fromJsonLnet/minecraft/predicate/entity/DamageSourcePredicate;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/DamageSourcePredicate;
-
getBoolean
- Mappings:
Namespace Name Mixin selector official aLbc;a(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;intermediary method_8849Lnet/minecraft/class_2022;method_8849(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;named getBooleanLnet/minecraft/predicate/entity/DamageSourcePredicate;getBoolean(Lcom/google/gson/JsonObject;Ljava/lang/String;)Ljava/lang/Boolean;
-
toJson
- Mappings:
Namespace Name Mixin selector official aLbc;a()Lcom/google/gson/JsonElement;intermediary method_8848Lnet/minecraft/class_2022;method_8848()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/predicate/entity/DamageSourcePredicate;toJson()Lcom/google/gson/JsonElement;
-
addProperty
- Mappings:
Namespace Name Mixin selector official aLbc;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)Vintermediary method_8850Lnet/minecraft/class_2022;method_8850(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)Vnamed addPropertyLnet/minecraft/predicate/entity/DamageSourcePredicate;addProperty(Lcom/google/gson/JsonObject;Ljava/lang/String;Ljava/lang/Boolean;)V
-