net.minecraft.advancements.critereon

public class DamageSourcePredicate

bd
net.minecraft.advancements.critereon.DamageSourcePredicate
net.minecraft.class_2022
net.minecraft.predicate.entity.DamageSourcePredicate
net.minecraft.src.C_696_
net.minecraft.advancements.critereon.CriterionConditionDamageSource

Field summary

Modifier and TypeField
public static final DamageSourcePredicate
a
ANY
field_9533
EMPTY
f_25420_
private final Boolean
b
isProjectile
field_9535
isProjectile
f_25421_
private final Boolean
c
isExplosion
field_9536
isExplosion
f_25422_
private final Boolean
d
bypassesArmor
field_9532
bypassesArmor
f_25423_
private final Boolean
e
bypassesInvulnerability
field_9531
bypassesInvulnerability
f_25424_
private final Boolean
f
bypassesMagic
field_9537
bypassesMagic
f_25425_
private final Boolean
g
isFire
field_9540
isFire
f_25426_
private final Boolean
h
isMagic
field_9541
isMagic
f_25427_
private final Boolean
i
isLightning
field_9538
isLightning
f_25428_
private final EntityPredicate
j
directEntity
field_9534
directEntity
f_25429_
private final EntityPredicate
k
sourceEntity
field_9539
sourceEntity
f_25430_

Constructor summary

ModifierConstructor
public (Boolean isProjectile, Boolean isExplosion, Boolean bypassesArmor, Boolean bypassesInvulnerability, Boolean bypassesMagic, Boolean isFire, Boolean isMagic, Boolean isLightning, EntityPredicate directEntity, EntityPredicate sourceEntity)

Method summary

Modifier and TypeMethod
public boolean
a(afp arg0, azz arg1)
matches(ServerPlayer arg0, DamageSource arg1)
method_8847(class_3222 arg0, class_1282 arg1)
test(ServerPlayerEntity player, DamageSource damageSource)
m_25448_(C_13_ p_25450_, C_489_ arg1)
public boolean
a(afo arg0, dvt arg1, azz arg2)
matches(ServerLevel arg0, Vec3 arg1, DamageSource arg2)
method_8845(class_3218 arg0, class_243 arg1, class_1282 arg2)
test(ServerWorld world, Vec3d pos, DamageSource damageSource)
m_25444_(C_12_ p_25446_, C_3046_ p_25447_, C_489_ arg2)
public static DamageSourcePredicate
a(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement arg0)
method_8846(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement json)
m_25451_(com.google.gson.JsonElement p_25452_)
private static Boolean
a(com.google.gson.JsonObject arg0, String arg1)
getOptionalBoolean(com.google.gson.JsonObject arg0, String arg1)
method_8849(com.google.gson.JsonObject arg0, String arg1)
getBoolean(com.google.gson.JsonObject obj, String name)
m_25453_(com.google.gson.JsonObject p_25454_, String p_25455_)
public com.google.gson.JsonElement
a()
serializeToJson()
method_8848()
toJson()
m_25443_()
private void
a(com.google.gson.JsonObject arg0, String arg1, Boolean arg2)
addOptionally(com.google.gson.JsonObject arg0, String arg1, Boolean arg2)
method_8850(com.google.gson.JsonObject arg0, String arg1, Boolean arg2)
addProperty(com.google.gson.JsonObject json, String key, Boolean value)
m_25456_(com.google.gson.JsonObject p_25458_, String p_25459_, Boolean arg2)