Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Direct Known Subclasses:
EntityDamageSource
- Mappings:
Namespace Name official urintermediary net/minecraft/class_856named net/minecraft/entity/damage/DamageSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DamageSourceprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate floatprivate booleanstatic final DamageSourcestatic final DamageSourceprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate booleanstatic final DamageSourcestatic final DamageSourcestatic final DamageSourceprivate booleanprivate booleanprivate booleanstatic final DamageSourceprivate booleanstatic final DamageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSourcearrow(AbstractArrowEntity arrow, Entity attacker) booleanstatic DamageSourceexplosion(LivingEntity attacker) static DamageSourcestatic DamageSourcefire(ExplosiveProjectileEntity projectile, Entity attacker) getDeathMessage(LivingEntity entity) floatbooleangetMagic()getName()booleanbooleanisFire()booleanbooleanbooleanbooleanbooleanstatic DamageSourcestatic DamageSourcemob(LivingEntity attacker) static DamageSourcemobProjectile(Entity projectile, LivingEntity attacker) static DamageSourceplayer(PlayerEntity attacker) protected DamageSourceprotected DamageSourcesetFire()protected DamageSourceprotected DamageSourcestatic DamageSourcestatic DamageSourcethrownProjectile(Entity projectile, Entity attacker)
-
Field Details
-
FIRE
- Mappings:
Namespace Name Mixin selector official aLur;a:Lur;intermediary field_3128Lnet/minecraft/class_856;field_3128:Lnet/minecraft/class_856;named FIRELnet/minecraft/entity/damage/DamageSource;FIRE:Lnet/minecraft/entity/damage/DamageSource;
-
LIGHTNING_BOLT
- Mappings:
Namespace Name Mixin selector official bLur;b:Lur;intermediary field_11888Lnet/minecraft/class_856;field_11888:Lnet/minecraft/class_856;named LIGHTNING_BOLTLnet/minecraft/entity/damage/DamageSource;LIGHTNING_BOLT:Lnet/minecraft/entity/damage/DamageSource;
-
ON_FIRE
- Mappings:
Namespace Name Mixin selector official cLur;c:Lur;intermediary field_3129Lnet/minecraft/class_856;field_3129:Lnet/minecraft/class_856;named ON_FIRELnet/minecraft/entity/damage/DamageSource;ON_FIRE:Lnet/minecraft/entity/damage/DamageSource;
-
LAVA
- Mappings:
Namespace Name Mixin selector official dLur;d:Lur;intermediary field_3130Lnet/minecraft/class_856;field_3130:Lnet/minecraft/class_856;named LAVALnet/minecraft/entity/damage/DamageSource;LAVA:Lnet/minecraft/entity/damage/DamageSource;
-
HOT_FLOOR
- Mappings:
Namespace Name Mixin selector official eLur;e:Lur;intermediary field_15025Lnet/minecraft/class_856;field_15025:Lnet/minecraft/class_856;named HOT_FLOORLnet/minecraft/entity/damage/DamageSource;HOT_FLOOR:Lnet/minecraft/entity/damage/DamageSource;
-
IN_WALL
- Mappings:
Namespace Name Mixin selector official fLur;f:Lur;intermediary field_3131Lnet/minecraft/class_856;field_3131:Lnet/minecraft/class_856;named IN_WALLLnet/minecraft/entity/damage/DamageSource;IN_WALL:Lnet/minecraft/entity/damage/DamageSource;
-
CRAMMING
- Mappings:
Namespace Name Mixin selector official gLur;g:Lur;intermediary field_15441Lnet/minecraft/class_856;field_15441:Lnet/minecraft/class_856;named CRAMMINGLnet/minecraft/entity/damage/DamageSource;CRAMMING:Lnet/minecraft/entity/damage/DamageSource;
-
DROWN
- Mappings:
Namespace Name Mixin selector official hLur;h:Lur;intermediary field_3132Lnet/minecraft/class_856;field_3132:Lnet/minecraft/class_856;named DROWNLnet/minecraft/entity/damage/DamageSource;DROWN:Lnet/minecraft/entity/damage/DamageSource;
-
STARVE
- Mappings:
Namespace Name Mixin selector official iLur;i:Lur;intermediary field_3133Lnet/minecraft/class_856;field_3133:Lnet/minecraft/class_856;named STARVELnet/minecraft/entity/damage/DamageSource;STARVE:Lnet/minecraft/entity/damage/DamageSource;
-
CACTUS
- Mappings:
Namespace Name Mixin selector official jLur;j:Lur;intermediary field_3134Lnet/minecraft/class_856;field_3134:Lnet/minecraft/class_856;named CACTUSLnet/minecraft/entity/damage/DamageSource;CACTUS:Lnet/minecraft/entity/damage/DamageSource;
-
FALL
- Mappings:
Namespace Name Mixin selector official kLur;k:Lur;intermediary field_3135Lnet/minecraft/class_856;field_3135:Lnet/minecraft/class_856;named FALLLnet/minecraft/entity/damage/DamageSource;FALL:Lnet/minecraft/entity/damage/DamageSource;
-
FLY_INTO_WALL
- Mappings:
Namespace Name Mixin selector official lLur;l:Lur;intermediary field_14445Lnet/minecraft/class_856;field_14445:Lnet/minecraft/class_856;named FLY_INTO_WALLLnet/minecraft/entity/damage/DamageSource;FLY_INTO_WALL:Lnet/minecraft/entity/damage/DamageSource;
-
OUT_OF_WORLD
- Mappings:
Namespace Name Mixin selector official mLur;m:Lur;intermediary field_3136Lnet/minecraft/class_856;field_3136:Lnet/minecraft/class_856;named OUT_OF_WORLDLnet/minecraft/entity/damage/DamageSource;OUT_OF_WORLD:Lnet/minecraft/entity/damage/DamageSource;
-
GENERIC
- Mappings:
Namespace Name Mixin selector official nLur;n:Lur;intermediary field_3137Lnet/minecraft/class_856;field_3137:Lnet/minecraft/class_856;named GENERICLnet/minecraft/entity/damage/DamageSource;GENERIC:Lnet/minecraft/entity/damage/DamageSource;
-
MAGIC
- Mappings:
Namespace Name Mixin selector official oLur;o:Lur;intermediary field_3140Lnet/minecraft/class_856;field_3140:Lnet/minecraft/class_856;named MAGICLnet/minecraft/entity/damage/DamageSource;MAGIC:Lnet/minecraft/entity/damage/DamageSource;
-
WITHER
- Mappings:
Namespace Name Mixin selector official pLur;p:Lur;intermediary field_5312Lnet/minecraft/class_856;field_5312:Lnet/minecraft/class_856;named WITHERLnet/minecraft/entity/damage/DamageSource;WITHER:Lnet/minecraft/entity/damage/DamageSource;
-
ANVIL
- Mappings:
Namespace Name Mixin selector official qLur;q:Lur;intermediary field_5313Lnet/minecraft/class_856;field_5313:Lnet/minecraft/class_856;named ANVILLnet/minecraft/entity/damage/DamageSource;ANVIL:Lnet/minecraft/entity/damage/DamageSource;
-
FALLING_BLOCK
- Mappings:
Namespace Name Mixin selector official rLur;r:Lur;intermediary field_5314Lnet/minecraft/class_856;field_5314:Lnet/minecraft/class_856;named FALLING_BLOCKLnet/minecraft/entity/damage/DamageSource;FALLING_BLOCK:Lnet/minecraft/entity/damage/DamageSource;
-
DRAGON_BREATH
- Mappings:
Namespace Name Mixin selector official sLur;s:Lur;intermediary field_14446Lnet/minecraft/class_856;field_14446:Lnet/minecraft/class_856;named DRAGON_BREATHLnet/minecraft/entity/damage/DamageSource;DRAGON_BREATH:Lnet/minecraft/entity/damage/DamageSource;
-
FIREWORK
- Mappings:
Namespace Name Mixin selector official tLur;t:Lur;intermediary field_15442Lnet/minecraft/class_856;field_15442:Lnet/minecraft/class_856;named FIREWORKLnet/minecraft/entity/damage/DamageSource;FIREWORK:Lnet/minecraft/entity/damage/DamageSource;
-
bypassesArmor
private boolean bypassesArmor- Mappings:
Namespace Name Mixin selector official vLur;v:Zintermediary field_3142Lnet/minecraft/class_856;field_3142:Znamed bypassesArmorLnet/minecraft/entity/damage/DamageSource;bypassesArmor:Z
-
outOfWorld
private boolean outOfWorld- Mappings:
Namespace Name Mixin selector official wLur;w:Zintermediary field_3143Lnet/minecraft/class_856;field_3143:Znamed outOfWorldLnet/minecraft/entity/damage/DamageSource;outOfWorld:Z
-
unblockable
private boolean unblockable- Mappings:
Namespace Name Mixin selector official xLur;x:Zintermediary field_9079Lnet/minecraft/class_856;field_9079:Znamed unblockableLnet/minecraft/entity/damage/DamageSource;unblockable:Z
-
exhaustion
private float exhaustion- Mappings:
Namespace Name Mixin selector official yLur;y:Fintermediary field_3144Lnet/minecraft/class_856;field_3144:Fnamed exhaustionLnet/minecraft/entity/damage/DamageSource;exhaustion:F
-
fire
private boolean fire- Mappings:
Namespace Name Mixin selector official zLur;z:Zintermediary field_3145Lnet/minecraft/class_856;field_3145:Znamed fireLnet/minecraft/entity/damage/DamageSource;fire:Z
-
projectile
private boolean projectile- Mappings:
Namespace Name Mixin selector official ALur;A:Zintermediary field_3146Lnet/minecraft/class_856;field_3146:Znamed projectileLnet/minecraft/entity/damage/DamageSource;projectile:Z
-
scaleWithDifficulty
private boolean scaleWithDifficulty- Mappings:
Namespace Name Mixin selector official BLur;B:Zintermediary field_3147Lnet/minecraft/class_856;field_3147:Znamed scaleWithDifficultyLnet/minecraft/entity/damage/DamageSource;scaleWithDifficulty:Z
-
magic
private boolean magic- Mappings:
Namespace Name Mixin selector official CLur;C:Zintermediary field_5315Lnet/minecraft/class_856;field_5315:Znamed magicLnet/minecraft/entity/damage/DamageSource;magic:Z
-
explosive
private boolean explosive- Mappings:
Namespace Name Mixin selector official DLur;D:Zintermediary field_6112Lnet/minecraft/class_856;field_6112:Znamed explosiveLnet/minecraft/entity/damage/DamageSource;explosive:Z
-
name
- Mappings:
Namespace Name Mixin selector official uLur;u:Ljava/lang/String;intermediary field_3141Lnet/minecraft/class_856;field_3141:Ljava/lang/String;named nameLnet/minecraft/entity/damage/DamageSource;name:Ljava/lang/String;
-
-
Constructor Details
-
DamageSource
- Mappings:
Namespace Name Mixin selector official <init>Lur;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_856;<init>(Ljava/lang/String;)Vnamed <init>Lnet/minecraft/entity/damage/DamageSource;<init>(Ljava/lang/String;)V
-
-
Method Details
-
mob
- Mappings:
Namespace Name Mixin selector official aLur;a(Lvp;)Lur;intermediary method_6078Lnet/minecraft/class_856;method_6078(Lnet/minecraft/class_1699;)Lnet/minecraft/class_856;named mobLnet/minecraft/entity/damage/DamageSource;mob(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/damage/DamageSource;
-
mobProjectile
- Mappings:
Namespace Name Mixin selector official aLur;a(Lvg;Lvp;)Lur;intermediary method_12939Lnet/minecraft/class_856;method_12939(Lnet/minecraft/class_864;Lnet/minecraft/class_1699;)Lnet/minecraft/class_856;named mobProjectileLnet/minecraft/entity/damage/DamageSource;mobProjectile(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/damage/DamageSource;
-
player
- Mappings:
Namespace Name Mixin selector official aLur;a(Laed;)Lur;intermediary method_2415Lnet/minecraft/class_856;method_2415(Lnet/minecraft/class_988;)Lnet/minecraft/class_856;named playerLnet/minecraft/entity/damage/DamageSource;player(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/damage/DamageSource;
-
arrow
- Mappings:
Namespace Name Mixin selector official aLur;a(Laeh;Lvg;)Lur;intermediary method_2416Lnet/minecraft/class_856;method_2416(Lnet/minecraft/class_990;Lnet/minecraft/class_864;)Lnet/minecraft/class_856;named arrowLnet/minecraft/entity/damage/DamageSource;arrow(Lnet/minecraft/entity/projectile/AbstractArrowEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
fire
- Mappings:
Namespace Name Mixin selector official aLur;a(Lael;Lvg;)Lur;intermediary method_2417Lnet/minecraft/class_856;method_2417(Lnet/minecraft/class_992;Lnet/minecraft/class_864;)Lnet/minecraft/class_856;named fireLnet/minecraft/entity/damage/DamageSource;fire(Lnet/minecraft/entity/projectile/ExplosiveProjectileEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
thrownProjectile
- Mappings:
Namespace Name Mixin selector official aLur;a(Lvg;Lvg;)Lur;intermediary method_2413Lnet/minecraft/class_856;method_2413(Lnet/minecraft/class_864;Lnet/minecraft/class_864;)Lnet/minecraft/class_856;named thrownProjectileLnet/minecraft/entity/damage/DamageSource;thrownProjectile(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
magic
- Mappings:
Namespace Name Mixin selector official bLur;b(Lvg;Lvg;)Lur;intermediary method_2419Lnet/minecraft/class_856;method_2419(Lnet/minecraft/class_864;Lnet/minecraft/class_864;)Lnet/minecraft/class_856;named magicLnet/minecraft/entity/damage/DamageSource;magic(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
thorns
- Mappings:
Namespace Name Mixin selector official aLur;a(Lvg;)Lur;intermediary method_4433Lnet/minecraft/class_856;method_4433(Lnet/minecraft/class_864;)Lnet/minecraft/class_856;named thornsLnet/minecraft/entity/damage/DamageSource;thorns(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
explosion
- Mappings:
Namespace Name Mixin selector official aLur;a(Lamp;)Lur;intermediary method_5370Lnet/minecraft/class_856;method_5370(Lnet/minecraft/class_1147;)Lnet/minecraft/class_856;named explosionLnet/minecraft/entity/damage/DamageSource;explosion(Lnet/minecraft/world/explosion/Explosion;)Lnet/minecraft/entity/damage/DamageSource;
-
explosion
- Mappings:
Namespace Name Mixin selector official bLur;b(Lvp;)Lur;intermediary method_12940Lnet/minecraft/class_856;method_12940(Lnet/minecraft/class_1699;)Lnet/minecraft/class_856;named explosionLnet/minecraft/entity/damage/DamageSource;explosion(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/damage/DamageSource;
-
isProjectile
public boolean isProjectile()- Mappings:
Namespace Name Mixin selector official aLur;a()Zintermediary method_2412Lnet/minecraft/class_856;method_2412()Znamed isProjectileLnet/minecraft/entity/damage/DamageSource;isProjectile()Z
-
setProjectile
- Mappings:
Namespace Name Mixin selector official bLur;b()Lur;intermediary method_2418Lnet/minecraft/class_856;method_2418()Lnet/minecraft/class_856;named setProjectileLnet/minecraft/entity/damage/DamageSource;setProjectile()Lnet/minecraft/entity/damage/DamageSource;
-
isExplosive
public boolean isExplosive()- Mappings:
Namespace Name Mixin selector official cLur;c()Zintermediary method_5372Lnet/minecraft/class_856;method_5372()Znamed isExplosiveLnet/minecraft/entity/damage/DamageSource;isExplosive()Z
-
setExplosive
- Mappings:
Namespace Name Mixin selector official dLur;d()Lur;intermediary method_5373Lnet/minecraft/class_856;method_5373()Lnet/minecraft/class_856;named setExplosiveLnet/minecraft/entity/damage/DamageSource;setExplosive()Lnet/minecraft/entity/damage/DamageSource;
-
bypassesArmor
public boolean bypassesArmor()- Mappings:
Namespace Name Mixin selector official eLur;e()Zintermediary method_2421Lnet/minecraft/class_856;method_2421()Znamed bypassesArmorLnet/minecraft/entity/damage/DamageSource;bypassesArmor()Z
-
getExhaustion
public float getExhaustion()- Mappings:
Namespace Name Mixin selector official fLur;f()Fintermediary method_2422Lnet/minecraft/class_856;method_2422()Fnamed getExhaustionLnet/minecraft/entity/damage/DamageSource;getExhaustion()F
-
isOutOfWorld
public boolean isOutOfWorld()- Mappings:
Namespace Name Mixin selector official gLur;g()Zintermediary method_2423Lnet/minecraft/class_856;method_2423()Znamed isOutOfWorldLnet/minecraft/entity/damage/DamageSource;isOutOfWorld()Z
-
isUnblockable
public boolean isUnblockable()- Mappings:
Namespace Name Mixin selector official hLur;h()Zintermediary method_8358Lnet/minecraft/class_856;method_8358()Znamed isUnblockableLnet/minecraft/entity/damage/DamageSource;isUnblockable()Z
-
getSource
- Mappings:
Namespace Name Mixin selector official iLur;i()Lvg;intermediary method_2424Lnet/minecraft/class_856;method_2424()Lnet/minecraft/class_864;named getSourceLnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;
-
getAttacker
- Mappings:
Namespace Name Mixin selector official jLur;j()Lvg;intermediary method_2425Lnet/minecraft/class_856;method_2425()Lnet/minecraft/class_864;named getAttackerLnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
-
setBypassesArmor
- Mappings:
Namespace Name Mixin selector official kLur;k()Lur;intermediary method_2426Lnet/minecraft/class_856;method_2426()Lnet/minecraft/class_856;named setBypassesArmorLnet/minecraft/entity/damage/DamageSource;setBypassesArmor()Lnet/minecraft/entity/damage/DamageSource;
-
setOutOfWorld
- Mappings:
Namespace Name Mixin selector official lLur;l()Lur;intermediary method_2427Lnet/minecraft/class_856;method_2427()Lnet/minecraft/class_856;named setOutOfWorldLnet/minecraft/entity/damage/DamageSource;setOutOfWorld()Lnet/minecraft/entity/damage/DamageSource;
-
setUnblockable
- Mappings:
Namespace Name Mixin selector official mLur;m()Lur;intermediary method_8359Lnet/minecraft/class_856;method_8359()Lnet/minecraft/class_856;named setUnblockableLnet/minecraft/entity/damage/DamageSource;setUnblockable()Lnet/minecraft/entity/damage/DamageSource;
-
setFire
- Mappings:
Namespace Name Mixin selector official nLur;n()Lur;intermediary method_2428Lnet/minecraft/class_856;method_2428()Lnet/minecraft/class_856;named setFireLnet/minecraft/entity/damage/DamageSource;setFire()Lnet/minecraft/entity/damage/DamageSource;
-
getDeathMessage
- Mappings:
Namespace Name Mixin selector official cLur;c(Lvp;)Lhh;intermediary method_6079Lnet/minecraft/class_856;method_6079(Lnet/minecraft/class_1699;)Lnet/minecraft/class_1982;named getDeathMessageLnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
-
isFire
public boolean isFire()- Mappings:
Namespace Name Mixin selector official oLur;o()Zintermediary method_2429Lnet/minecraft/class_856;method_2429()Znamed isFireLnet/minecraft/entity/damage/DamageSource;isFire()Z
-
getName
- Mappings:
Namespace Name Mixin selector official pLur;p()Ljava/lang/String;intermediary method_2430Lnet/minecraft/class_856;method_2430()Ljava/lang/String;named getNameLnet/minecraft/entity/damage/DamageSource;getName()Ljava/lang/String;
-
setScaledWithDifficulty
- Mappings:
Namespace Name Mixin selector official qLur;q()Lur;intermediary method_2431Lnet/minecraft/class_856;method_2431()Lnet/minecraft/class_856;named setScaledWithDifficultyLnet/minecraft/entity/damage/DamageSource;setScaledWithDifficulty()Lnet/minecraft/entity/damage/DamageSource;
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Mappings:
Namespace Name Mixin selector official rLur;r()Zintermediary method_2432Lnet/minecraft/class_856;method_2432()Znamed isScaledWithDifficultyLnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
-
getMagic
public boolean getMagic()- Mappings:
Namespace Name Mixin selector official sLur;s()Zintermediary method_4434Lnet/minecraft/class_856;method_4434()Znamed getMagicLnet/minecraft/entity/damage/DamageSource;getMagic()Z
-
setUsesMagic
- Mappings:
Namespace Name Mixin selector official tLur;t()Lur;intermediary method_4435Lnet/minecraft/class_856;method_4435()Lnet/minecraft/class_856;named setUsesMagicLnet/minecraft/entity/damage/DamageSource;setUsesMagic()Lnet/minecraft/entity/damage/DamageSource;
-
isSourceCreativePlayer
public boolean isSourceCreativePlayer()- Mappings:
Namespace Name Mixin selector official uLur;u()Zintermediary method_10918Lnet/minecraft/class_856;method_10918()Znamed isSourceCreativePlayerLnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Z
-
getPosition
- Mappings:
Namespace Name Mixin selector official vLur;v()Lbhe;intermediary method_12941Lnet/minecraft/class_856;method_12941()Lnet/minecraft/class_236;named getPositionLnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;
-