net.minecraft.world.damagesource

public class DamageSource

bho
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()
isIndirect()
method_48790()
isIndirect()
m_269014_()
public Entity
c()
getDirectEntity()
method_5526()
getSource()
m_7640_()
public Entity
d()
getEntity()
method_5529()
getAttacker()
m_7639_()
public Component
a(bjg arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity killed)
m_6157_(C_524_ arg0)
public String
e()
getMsgId()
method_5525()
getName()
m_19385_()
public boolean
f()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
m_7986_()
public boolean
g()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
m_19390_()
public Vec3
h()
getSourcePosition()
method_5510()
getPosition()
m_7270_()
public Vec3
i()
sourcePositionRaw()
method_48791()
getStoredPosition()
m_269181_()
public boolean
a(aqh<bhq> 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(aev<bhq> 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
j()
type()
method_48792()
getType()
m_269415_()
public Holder<DamageType>
k()
typeHolder()
method_48793()
getTypeRegistryEntry()
m_269150_()