net.minecraft.world.damagesource

public class DamageSource

btc
net.minecraft.world.damagesource.DamageSource
net.minecraft.class_1282
net.minecraft.entity.damage.DamageSource
net.minecraft.world.damagesource.DamageSource

Field summary

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

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()
public boolean
b()
isDirect()
method_60489()
isDirect()
public Entity
c()
getDirectEntity()
method_5526()
getSource()
public Entity
d()
getEntity()
method_5529()
getAttacker()
public ItemStack
e()
getWeaponItem()
method_60948()
getWeaponStack()
public Component
a(bvi arg0)
getLocalizedDeathMessage(LivingEntity arg0)
method_5506(class_1309 arg0)
getDeathMessage(LivingEntity killed)
public String
f()
getMsgId()
method_5525()
getName()
public boolean
g()
scalesWithDifficulty()
method_5514()
isScaledWithDifficulty()
public boolean
h()
isCreativePlayer()
method_5530()
isSourceCreativePlayer()
public Vec3
i()
getSourcePosition()
method_5510()
getPosition()
public Vec3
j()
sourcePositionRaw()
method_48791()
getStoredPosition()
public boolean
a(axf<bte> arg0)
is(TagKey<DamageType> arg0)
method_48789(class_6862<class_8110> arg0)
isIn(TagKey<DamageType> tag)
public boolean
a(aku<bte> arg0)
is(ResourceKey<DamageType> arg0)
method_49708(class_5321<class_8110> arg0)
isOf(RegistryKey<DamageType> typeKey)
public DamageType
k()
type()
method_48792()
getType()
public Holder<DamageType>
l()
typeHolder()
method_48793()
getTypeRegistryEntry()