net.minecraft.world.damagesource

public class DamageSource

brk
net.minecraft.world.damagesource.DamageSource
net.minecraft.class_1282
net.minecraft.entity.damage.DamageSource
net.minecraft.src.C_489_
net.minecraft.world.damagesource.DamageSource

Field summary

Modifier and TypeField
private final Holder<DamageType>
a
type
field_42291
type
f_268495_
private final Entity
b
causingEntity
field_42292
attacker
f_268569_
private final Entity
c
directEntity
field_42293
source
f_268595_
private final Vec3
d
damageSourcePosition
field_42294
position
f_268454_

Constructor summary

ModifierConstructor
private (Holder<DamageType> type, Entity source, Entity attacker, Vec3 position)
public (Holder<DamageType> type, Entity source, Entity attacker)
public (Holder<DamageType> type, Vec3 position)
public (Holder<DamageType> type, Entity attacker)
public (Holder<DamageType> type)

Method summary

Modifier and TypeMethod
public float
a()
getFoodExhaustion()
method_5528()
getExhaustion()
m_19377_()
public boolean
b()
isDirect()
method_60489()
isDirect()
m_338899_()
public Entity
c()
getDirectEntity()
method_5526()
getSource()
m_7640_()
public Entity
d()
getEntity()
method_5529()
getAttacker()
m_7639_()
public ItemStack
e()
getWeaponItem()
method_60948()
getWeaponStack()
m_340098_()
public Component
a(btn arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity killed)
m_6157_(C_524_ arg0)
public String
f()
getMsgId()
method_5525()
getName()
m_19385_()
public boolean
g()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
m_7986_()
public boolean
h()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
m_19390_()
public Vec3
i()
getSourcePosition()
method_5510()
getPosition()
m_7270_()
public Vec3
j()
sourcePositionRaw()
method_48791()
getStoredPosition()
m_269181_()
public boolean
a(awu<brm> arg0)
is(TagKey<DamageType> arg0)
method_48789(class_6862<class_8110> arg0)
isIn(TagKey<DamageType> tag)
m_269533_(C_203208_<C_268380_> arg0)
public boolean
a(akq<brm> arg0)
is(ResourceKey<DamageType> arg0)
method_49708(class_5321<class_8110> arg0)
isOf(RegistryKey<DamageType> typeKey)
m_276093_(C_5264_<C_268380_> arg0)
public DamageType
k()
type()
method_48792()
getType()
m_269415_()
public Holder<DamageType>
l()
typeHolder()
method_48793()
getTypeRegistryEntry()
m_269150_()