Package net.minecraft.entity.damage
Class EntityDamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
net.minecraft.entity.damage.EntityDamageSource
- Direct Known Subclasses:
ProjectileDamageSource
public class EntityDamageSource extends DamageSource
- Mappings:
Namespace Name official aqg
intermediary net/minecraft/class_1285
named net/minecraft/entity/damage/EntityDamageSource
-
Field Summary
Fields inherited from class net.minecraft.entity.damage.DamageSource
ANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRYOUT, FALL, FALLING_BLOCK, FALLING_STALACTITE, FLY_INTO_WALL, FREEZE, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, name, ON_FIRE, OUT_OF_WORLD, STALAGMITE, STARVE, SWEET_BERRY_BUSH, WITHER
-
Constructor Summary
Constructors Constructor Description EntityDamageSource(String name, Entity source)
-
Method Summary
Modifier and Type Method Description Entity
getAttacker()
Text
getDeathMessage(LivingEntity entity)
Vec3d
getPosition()
boolean
isScaledWithDifficulty()
boolean
isThorns()
EntityDamageSource
setThorns()
String
toString()
Methods inherited from class net.minecraft.entity.damage.DamageSource
arrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getName, getSource, isExplosive, isFallingBlock, isFire, isFromFalling, isMagic, isOutOfWorld, isProjectile, isSourceCreativePlayer, isUnblockable, magic, mob, mobProjectile, player, setBypassesArmor, setExplosive, setFallingBlock, setFire, setFromFalling, setOutOfWorld, setProjectile, setScaledWithDifficulty, setUnblockable, setUsesMagic, sting, thorns, thrownProjectile, trident, witherSkull
-
Field Details
-
source
- Mappings:
Namespace Name Mixin selector official z
Laqg;z:Laqv;
intermediary field_5879
Lnet/minecraft/class_1285;field_5879:Lnet/minecraft/class_1297;
named source
Lnet/minecraft/entity/damage/EntityDamageSource;source:Lnet/minecraft/entity/Entity;
-
thorns
private boolean thorns- Mappings:
Namespace Name Mixin selector official A
Laqg;A:Z
intermediary field_5880
Lnet/minecraft/class_1285;field_5880:Z
named thorns
Lnet/minecraft/entity/damage/EntityDamageSource;thorns:Z
-
-
Constructor Details
-
EntityDamageSource
- Mappings:
Namespace Name Mixin selector official <init>
Laqg;<init>(Ljava/lang/String;Laqv;)V
intermediary <init>
Lnet/minecraft/class_1285;<init>(Ljava/lang/String;Lnet/minecraft/class_1297;)V
named <init>
Lnet/minecraft/entity/damage/EntityDamageSource;<init>(Ljava/lang/String;Lnet/minecraft/entity/Entity;)V
-
-
Method Details
-
setThorns
- Mappings:
Namespace Name Mixin selector official B
Laqg;B()Laqg;
intermediary method_5550
Lnet/minecraft/class_1285;method_5550()Lnet/minecraft/class_1285;
named setThorns
Lnet/minecraft/entity/damage/EntityDamageSource;setThorns()Lnet/minecraft/entity/damage/EntityDamageSource;
-
isThorns
public boolean isThorns()- Mappings:
Namespace Name Mixin selector official C
Laqg;C()Z
intermediary method_5549
Lnet/minecraft/class_1285;method_5549()Z
named isThorns
Lnet/minecraft/entity/damage/EntityDamageSource;isThorns()Z
-
getAttacker
- Overrides:
getAttacker
in classDamageSource
- Mappings:
Namespace Name Mixin selector official l
Laqf;l()Laqv;
intermediary method_5529
Lnet/minecraft/class_1282;method_5529()Lnet/minecraft/class_1297;
named getAttacker
Lnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
-
getDeathMessage
- Overrides:
getDeathMessage
in classDamageSource
- Mappings:
Namespace Name Mixin selector official a
Laqf;a(Lari;)Loi;
intermediary method_5506
Lnet/minecraft/class_1282;method_5506(Lnet/minecraft/class_1309;)Lnet/minecraft/class_2561;
named getDeathMessage
Lnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Overrides:
isScaledWithDifficulty
in classDamageSource
- Mappings:
Namespace Name Mixin selector official u
Laqf;u()Z
intermediary method_5514
Lnet/minecraft/class_1282;method_5514()Z
named isScaledWithDifficulty
Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
-
getPosition
- Overrides:
getPosition
in classDamageSource
- Mappings:
Namespace Name Mixin selector official A
Laqf;A()Ldiu;
intermediary method_5510
Lnet/minecraft/class_1282;method_5510()Lnet/minecraft/class_243;
named getPosition
Lnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;
-
toString
- Overrides:
toString
in classDamageSource
- Mappings:
Namespace Name Mixin selector official toString
Laqf;toString()Ljava/lang/String;
intermediary toString
Lnet/minecraft/class_1282;toString()Ljava/lang/String;
named toString
Lnet/minecraft/entity/damage/DamageSource;toString()Ljava/lang/String;
-