Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Direct Known Subclasses:
EntityDamageSource
- Mappings:
Namespace Name official whintermediary net/minecraft/class_856named net/minecraft/entity/damage/DamageSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic DamageSourceprivate booleanstatic DamageSourcestatic DamageSourceprivate floatprivate booleanstatic DamageSourcestatic DamageSourceprivate booleanstatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourcestatic DamageSourceprivate booleanstatic DamageSourcestatic DamageSourcestatic DamageSourceprivate booleanprivate booleanprivate booleanstatic DamageSourceprivate booleanstatic DamageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageSourcearrow(AbstractArrowEntity arrow, Entity attacker) booleanstatic DamageSourcestatic DamageSourcefire(ExplosiveProjectileEntity projectile, Entity attacker) getDeathMessage(LivingEntity entity) floatbooleangetMagic()getName()booleanbooleanisFire()booleanbooleanbooleanbooleanbooleanstatic DamageSourcestatic DamageSourcemob(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 aLwh;a:Lwh;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 bLwh;b:Lwh;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 cLwh;c:Lwh;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 dLwh;d:Lwh;intermediary field_3130Lnet/minecraft/class_856;field_3130:Lnet/minecraft/class_856;named LAVALnet/minecraft/entity/damage/DamageSource;LAVA:Lnet/minecraft/entity/damage/DamageSource;
-
IN_WALL
- Mappings:
Namespace Name Mixin selector official eLwh;e:Lwh;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;
-
DROWN
- Mappings:
Namespace Name Mixin selector official fLwh;f:Lwh;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 gLwh;g:Lwh;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 hLwh;h:Lwh;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 iLwh;i:Lwh;intermediary field_3135Lnet/minecraft/class_856;field_3135:Lnet/minecraft/class_856;named FALLLnet/minecraft/entity/damage/DamageSource;FALL:Lnet/minecraft/entity/damage/DamageSource;
-
OUT_OF_WORLD
- Mappings:
Namespace Name Mixin selector official jLwh;j:Lwh;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 kLwh;k:Lwh;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 lLwh;l:Lwh;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 mLwh;m:Lwh;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 nLwh;n:Lwh;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 oLwh;o:Lwh;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;
-
bypassesArmor
private boolean bypassesArmor- Mappings:
Namespace Name Mixin selector official qLwh;q: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 rLwh;r: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 sLwh;s: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 tLwh;t: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 uLwh;u: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 vLwh;v: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 wLwh;w: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 xLwh;x: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 yLwh;y:Zintermediary field_6112Lnet/minecraft/class_856;field_6112:Znamed explosiveLnet/minecraft/entity/damage/DamageSource;explosive:Z
-
name
- Mappings:
Namespace Name Mixin selector official pLwh;p: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>Lwh;<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 aLwh;a(Lxm;)Lwh;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;
-
player
- Mappings:
Namespace Name Mixin selector official aLwh;a(Lahd;)Lwh;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 aLwh;a(Lahj;Lwv;)Lwh;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 aLwh;a(Lahl;Lwv;)Lwh;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 aLwh;a(Lwv;Lwv;)Lwh;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 bLwh;b(Lwv;Lwv;)Lwh;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 aLwh;a(Lwv;)Lwh;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 aLwh;a(Laqo;)Lwh;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;
-
isProjectile
public boolean isProjectile()- Mappings:
Namespace Name Mixin selector official aLwh;a()Zintermediary method_2412Lnet/minecraft/class_856;method_2412()Znamed isProjectileLnet/minecraft/entity/damage/DamageSource;isProjectile()Z
-
setProjectile
- Mappings:
Namespace Name Mixin selector official bLwh;b()Lwh;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 cLwh;c()Zintermediary method_5372Lnet/minecraft/class_856;method_5372()Znamed isExplosiveLnet/minecraft/entity/damage/DamageSource;isExplosive()Z
-
setExplosive
- Mappings:
Namespace Name Mixin selector official dLwh;d()Lwh;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 eLwh;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 fLwh;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 gLwh;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 hLwh;h()Zintermediary method_8358Lnet/minecraft/class_856;method_8358()Znamed isUnblockableLnet/minecraft/entity/damage/DamageSource;isUnblockable()Z
-
getSource
- Mappings:
Namespace Name Mixin selector official iLwh;i()Lwv;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 jLwh;j()Lwv;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 kLwh;k()Lwh;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 lLwh;l()Lwh;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 mLwh;m()Lwh;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 nLwh;n()Lwh;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 bLwh;b(Lxm;)Lho;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 oLwh;o()Zintermediary method_2429Lnet/minecraft/class_856;method_2429()Znamed isFireLnet/minecraft/entity/damage/DamageSource;isFire()Z
-
getName
- Mappings:
Namespace Name Mixin selector official pLwh;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 qLwh;q()Lwh;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 rLwh;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 sLwh;s()Zintermediary method_4434Lnet/minecraft/class_856;method_4434()Znamed getMagicLnet/minecraft/entity/damage/DamageSource;getMagic()Z
-
setUsesMagic
- Mappings:
Namespace Name Mixin selector official tLwh;t()Lwh;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 uLwh;u()Zintermediary method_10918Lnet/minecraft/class_856;method_10918()Znamed isSourceCreativePlayerLnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Z
-