Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Direct Known Subclasses:
EntityDamageSource
public class DamageSource extends Object
- Mappings:
Namespace Name official owintermediary net/minecraft/class_1733named net/minecraft/entity/damage/DamageSource
-
Field Summary
Fields Modifier and Type Field Description static DamageSourceANVILprivate booleanbypassesArmorstatic DamageSourceCACTUSstatic DamageSourceDROWNprivate floatexhaustionprivate booleanexplosivestatic DamageSourceFALLstatic DamageSourceFALLING_BLOCKprivate booleanfirestatic DamageSourceFIREstatic DamageSourceGENERICstatic DamageSourceIN_WALLstatic DamageSourceLAVAstatic DamageSourceLIGHTNING_BOLTprivate booleanmagicstatic DamageSourceMAGICStringnamestatic DamageSourceON_FIREstatic DamageSourceOUT_OF_WORLDprivate booleanoutOfWorldprivate booleanprojectileprivate booleanscaleWithDifficultystatic DamageSourceSTARVEprivate booleanunblockablestatic DamageSourceWITHER -
Constructor Summary
Constructors Modifier Constructor Description protectedDamageSource(String string) -
Method Summary
-
Field Details
-
FIRE
- Mappings:
Namespace Name Mixin selector official aLow;a:Low;intermediary field_7246Lnet/minecraft/class_1733;field_7246:Lnet/minecraft/class_1733;named FIRELnet/minecraft/entity/damage/DamageSource;FIRE:Lnet/minecraft/entity/damage/DamageSource;
-
LIGHTNING_BOLT
- Mappings:
Namespace Name Mixin selector official bLow;b:Low;intermediary field_7247Lnet/minecraft/class_1733;field_7247:Lnet/minecraft/class_1733;named LIGHTNING_BOLTLnet/minecraft/entity/damage/DamageSource;LIGHTNING_BOLT:Lnet/minecraft/entity/damage/DamageSource;
-
ON_FIRE
- Mappings:
Namespace Name Mixin selector official cLow;c:Low;intermediary field_7248Lnet/minecraft/class_1733;field_7248:Lnet/minecraft/class_1733;named ON_FIRELnet/minecraft/entity/damage/DamageSource;ON_FIRE:Lnet/minecraft/entity/damage/DamageSource;
-
LAVA
- Mappings:
Namespace Name Mixin selector official dLow;d:Low;intermediary field_7249Lnet/minecraft/class_1733;field_7249:Lnet/minecraft/class_1733;named LAVALnet/minecraft/entity/damage/DamageSource;LAVA:Lnet/minecraft/entity/damage/DamageSource;
-
IN_WALL
- Mappings:
Namespace Name Mixin selector official eLow;e:Low;intermediary field_7250Lnet/minecraft/class_1733;field_7250:Lnet/minecraft/class_1733;named IN_WALLLnet/minecraft/entity/damage/DamageSource;IN_WALL:Lnet/minecraft/entity/damage/DamageSource;
-
DROWN
- Mappings:
Namespace Name Mixin selector official fLow;f:Low;intermediary field_7251Lnet/minecraft/class_1733;field_7251:Lnet/minecraft/class_1733;named DROWNLnet/minecraft/entity/damage/DamageSource;DROWN:Lnet/minecraft/entity/damage/DamageSource;
-
STARVE
- Mappings:
Namespace Name Mixin selector official gLow;g:Low;intermediary field_7252Lnet/minecraft/class_1733;field_7252:Lnet/minecraft/class_1733;named STARVELnet/minecraft/entity/damage/DamageSource;STARVE:Lnet/minecraft/entity/damage/DamageSource;
-
CACTUS
- Mappings:
Namespace Name Mixin selector official hLow;h:Low;intermediary field_7253Lnet/minecraft/class_1733;field_7253:Lnet/minecraft/class_1733;named CACTUSLnet/minecraft/entity/damage/DamageSource;CACTUS:Lnet/minecraft/entity/damage/DamageSource;
-
FALL
- Mappings:
Namespace Name Mixin selector official iLow;i:Low;intermediary field_7254Lnet/minecraft/class_1733;field_7254:Lnet/minecraft/class_1733;named FALLLnet/minecraft/entity/damage/DamageSource;FALL:Lnet/minecraft/entity/damage/DamageSource;
-
OUT_OF_WORLD
- Mappings:
Namespace Name Mixin selector official jLow;j:Low;intermediary field_7255Lnet/minecraft/class_1733;field_7255:Lnet/minecraft/class_1733;named OUT_OF_WORLDLnet/minecraft/entity/damage/DamageSource;OUT_OF_WORLD:Lnet/minecraft/entity/damage/DamageSource;
-
GENERIC
- Mappings:
Namespace Name Mixin selector official kLow;k:Low;intermediary field_7256Lnet/minecraft/class_1733;field_7256:Lnet/minecraft/class_1733;named GENERICLnet/minecraft/entity/damage/DamageSource;GENERIC:Lnet/minecraft/entity/damage/DamageSource;
-
MAGIC
- Mappings:
Namespace Name Mixin selector official lLow;l:Low;intermediary field_7257Lnet/minecraft/class_1733;field_7257:Lnet/minecraft/class_1733;named MAGICLnet/minecraft/entity/damage/DamageSource;MAGIC:Lnet/minecraft/entity/damage/DamageSource;
-
WITHER
- Mappings:
Namespace Name Mixin selector official mLow;m:Low;intermediary field_7258Lnet/minecraft/class_1733;field_7258:Lnet/minecraft/class_1733;named WITHERLnet/minecraft/entity/damage/DamageSource;WITHER:Lnet/minecraft/entity/damage/DamageSource;
-
ANVIL
- Mappings:
Namespace Name Mixin selector official nLow;n:Low;intermediary field_7259Lnet/minecraft/class_1733;field_7259:Lnet/minecraft/class_1733;named ANVILLnet/minecraft/entity/damage/DamageSource;ANVIL:Lnet/minecraft/entity/damage/DamageSource;
-
FALLING_BLOCK
- Mappings:
Namespace Name Mixin selector official oLow;o:Low;intermediary field_7260Lnet/minecraft/class_1733;field_7260:Lnet/minecraft/class_1733;named FALLING_BLOCKLnet/minecraft/entity/damage/DamageSource;FALLING_BLOCK:Lnet/minecraft/entity/damage/DamageSource;
-
bypassesArmor
private boolean bypassesArmor- Mappings:
Namespace Name Mixin selector official qLow;q:Zintermediary field_7262Lnet/minecraft/class_1733;field_7262:Znamed bypassesArmorLnet/minecraft/entity/damage/DamageSource;bypassesArmor:Z
-
outOfWorld
private boolean outOfWorld- Mappings:
Namespace Name Mixin selector official rLow;r:Zintermediary field_7263Lnet/minecraft/class_1733;field_7263:Znamed outOfWorldLnet/minecraft/entity/damage/DamageSource;outOfWorld:Z
-
unblockable
private boolean unblockable- Mappings:
Namespace Name Mixin selector official sLow;s:Zintermediary field_7264Lnet/minecraft/class_1733;field_7264:Znamed unblockableLnet/minecraft/entity/damage/DamageSource;unblockable:Z
-
exhaustion
private float exhaustion- Mappings:
Namespace Name Mixin selector official tLow;t:Fintermediary field_7265Lnet/minecraft/class_1733;field_7265:Fnamed exhaustionLnet/minecraft/entity/damage/DamageSource;exhaustion:F
-
fire
private boolean fire- Mappings:
Namespace Name Mixin selector official uLow;u:Zintermediary field_7266Lnet/minecraft/class_1733;field_7266:Znamed fireLnet/minecraft/entity/damage/DamageSource;fire:Z
-
projectile
private boolean projectile- Mappings:
Namespace Name Mixin selector official vLow;v:Zintermediary field_7267Lnet/minecraft/class_1733;field_7267:Znamed projectileLnet/minecraft/entity/damage/DamageSource;projectile:Z
-
scaleWithDifficulty
private boolean scaleWithDifficulty- Mappings:
Namespace Name Mixin selector official wLow;w:Zintermediary field_7268Lnet/minecraft/class_1733;field_7268:Znamed scaleWithDifficultyLnet/minecraft/entity/damage/DamageSource;scaleWithDifficulty:Z
-
magic
private boolean magic- Mappings:
Namespace Name Mixin selector official xLow;x:Zintermediary field_7269Lnet/minecraft/class_1733;field_7269:Znamed magicLnet/minecraft/entity/damage/DamageSource;magic:Z
-
explosive
private boolean explosive- Mappings:
Namespace Name Mixin selector official yLow;y:Zintermediary field_7270Lnet/minecraft/class_1733;field_7270:Znamed explosiveLnet/minecraft/entity/damage/DamageSource;explosive:Z
-
name
- Mappings:
Namespace Name Mixin selector official pLow;p:Ljava/lang/String;intermediary field_7261Lnet/minecraft/class_1733;field_7261:Ljava/lang/String;named nameLnet/minecraft/entity/damage/DamageSource;name:Ljava/lang/String;
-
-
Constructor Details
-
DamageSource
-
-
Method Details
-
mob
- Mappings:
Namespace Name Mixin selector official aLow;a(Lpr;)Low;intermediary method_6820Lnet/minecraft/class_1733;method_6820(Lnet/minecraft/class_1752;)Lnet/minecraft/class_1733;named mobLnet/minecraft/entity/damage/DamageSource;mob(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/damage/DamageSource;
-
player
- Mappings:
Namespace Name Mixin selector official aLow;a(Lwn;)Low;intermediary method_6821Lnet/minecraft/class_1733;method_6821(Lnet/minecraft/class_1963;)Lnet/minecraft/class_1733;named playerLnet/minecraft/entity/damage/DamageSource;player(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/damage/DamageSource;
-
arrow
- Mappings:
Namespace Name Mixin selector official aLow;a(Lwq;Lpk;)Low;intermediary method_6822Lnet/minecraft/class_1733;method_6822(Lnet/minecraft/class_1967;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;named arrowLnet/minecraft/entity/damage/DamageSource;arrow(Lnet/minecraft/entity/projectile/ArrowEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
fire
- Mappings:
Namespace Name Mixin selector official aLow;a(Lws;Lpk;)Low;intermediary method_6823Lnet/minecraft/class_1733;method_6823(Lnet/minecraft/class_1969;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;named fireLnet/minecraft/entity/damage/DamageSource;fire(Lnet/minecraft/entity/projectile/ProjectileEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
thrownProjectile
- Mappings:
Namespace Name Mixin selector official aLow;a(Lpk;Lpk;)Low;intermediary method_6819Lnet/minecraft/class_1733;method_6819(Lnet/minecraft/class_1745;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;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 bLow;b(Lpk;Lpk;)Low;intermediary method_6825Lnet/minecraft/class_1733;method_6825(Lnet/minecraft/class_1745;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;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 aLow;a(Lpk;)Low;intermediary method_6818Lnet/minecraft/class_1733;method_6818(Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;named thornsLnet/minecraft/entity/damage/DamageSource;thorns(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
-
explosion
- Mappings:
Namespace Name Mixin selector official aLow;a(Ladi;)Low;intermediary method_6817Lnet/minecraft/class_1733;method_6817(Lnet/minecraft/class_93;)Lnet/minecraft/class_1733;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 aLow;a()Zintermediary method_6816Lnet/minecraft/class_1733;method_6816()Znamed isProjectileLnet/minecraft/entity/damage/DamageSource;isProjectile()Z
-
setProjectile
- Mappings:
Namespace Name Mixin selector official bLow;b()Low;intermediary method_6824Lnet/minecraft/class_1733;method_6824()Lnet/minecraft/class_1733;named setProjectileLnet/minecraft/entity/damage/DamageSource;setProjectile()Lnet/minecraft/entity/damage/DamageSource;
-
isExplosive
public boolean isExplosive()- Mappings:
Namespace Name Mixin selector official cLow;c()Zintermediary method_6827Lnet/minecraft/class_1733;method_6827()Znamed isExplosiveLnet/minecraft/entity/damage/DamageSource;isExplosive()Z
-
setExplosive
- Mappings:
Namespace Name Mixin selector official dLow;d()Low;intermediary method_6828Lnet/minecraft/class_1733;method_6828()Lnet/minecraft/class_1733;named setExplosiveLnet/minecraft/entity/damage/DamageSource;setExplosive()Lnet/minecraft/entity/damage/DamageSource;
-
bypassesArmor
public boolean bypassesArmor()- Mappings:
Namespace Name Mixin selector official eLow;e()Zintermediary method_6829Lnet/minecraft/class_1733;method_6829()Znamed bypassesArmorLnet/minecraft/entity/damage/DamageSource;bypassesArmor()Z
-
getExhaustion
public float getExhaustion()- Mappings:
Namespace Name Mixin selector official fLow;f()Fintermediary method_6830Lnet/minecraft/class_1733;method_6830()Fnamed getExhaustionLnet/minecraft/entity/damage/DamageSource;getExhaustion()F
-
isOutOfWorld
public boolean isOutOfWorld()- Mappings:
Namespace Name Mixin selector official gLow;g()Zintermediary method_6831Lnet/minecraft/class_1733;method_6831()Znamed isOutOfWorldLnet/minecraft/entity/damage/DamageSource;isOutOfWorld()Z
-
isUnblockable
public boolean isUnblockable()- Mappings:
Namespace Name Mixin selector official hLow;h()Zintermediary method_6832Lnet/minecraft/class_1733;method_6832()Znamed isUnblockableLnet/minecraft/entity/damage/DamageSource;isUnblockable()Z
-
getSource
- Mappings:
Namespace Name Mixin selector official iLow;i()Lpk;intermediary method_6833Lnet/minecraft/class_1733;method_6833()Lnet/minecraft/class_1745;named getSourceLnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;
-
getAttacker
- Mappings:
Namespace Name Mixin selector official jLow;j()Lpk;intermediary method_6834Lnet/minecraft/class_1733;method_6834()Lnet/minecraft/class_1745;named getAttackerLnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
-
setBypassesArmor
- Mappings:
Namespace Name Mixin selector official kLow;k()Low;intermediary method_6835Lnet/minecraft/class_1733;method_6835()Lnet/minecraft/class_1733;named setBypassesArmorLnet/minecraft/entity/damage/DamageSource;setBypassesArmor()Lnet/minecraft/entity/damage/DamageSource;
-
setOutOfWorld
- Mappings:
Namespace Name Mixin selector official lLow;l()Low;intermediary method_6836Lnet/minecraft/class_1733;method_6836()Lnet/minecraft/class_1733;named setOutOfWorldLnet/minecraft/entity/damage/DamageSource;setOutOfWorld()Lnet/minecraft/entity/damage/DamageSource;
-
setUnblockable
- Mappings:
Namespace Name Mixin selector official mLow;m()Low;intermediary method_6837Lnet/minecraft/class_1733;method_6837()Lnet/minecraft/class_1733;named setUnblockableLnet/minecraft/entity/damage/DamageSource;setUnblockable()Lnet/minecraft/entity/damage/DamageSource;
-
setFire
- Mappings:
Namespace Name Mixin selector official nLow;n()Low;intermediary method_6838Lnet/minecraft/class_1733;method_6838()Lnet/minecraft/class_1733;named setFireLnet/minecraft/entity/damage/DamageSource;setFire()Lnet/minecraft/entity/damage/DamageSource;
-
method_6826
- Mappings:
Namespace Name Mixin selector official bLow;b(Lpr;)Leu;intermediary method_6826Lnet/minecraft/class_1733;method_6826(Lnet/minecraft/class_1752;)Lnet/minecraft/class_1444;named method_6826Lnet/minecraft/entity/damage/DamageSource;method_6826(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
-
isFire
public boolean isFire()- Mappings:
Namespace Name Mixin selector official oLow;o()Zintermediary method_6839Lnet/minecraft/class_1733;method_6839()Znamed isFireLnet/minecraft/entity/damage/DamageSource;isFire()Z
-
getName
- Mappings:
Namespace Name Mixin selector official pLow;p()Ljava/lang/String;intermediary method_6840Lnet/minecraft/class_1733;method_6840()Ljava/lang/String;named getNameLnet/minecraft/entity/damage/DamageSource;getName()Ljava/lang/String;
-
setScaledWithDifficulty
- Mappings:
Namespace Name Mixin selector official qLow;q()Low;intermediary method_6841Lnet/minecraft/class_1733;method_6841()Lnet/minecraft/class_1733;named setScaledWithDifficultyLnet/minecraft/entity/damage/DamageSource;setScaledWithDifficulty()Lnet/minecraft/entity/damage/DamageSource;
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Mappings:
Namespace Name Mixin selector official rLow;r()Zintermediary method_6842Lnet/minecraft/class_1733;method_6842()Znamed isScaledWithDifficultyLnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
-
getMagic
public boolean getMagic()- Mappings:
Namespace Name Mixin selector official sLow;s()Zintermediary method_6843Lnet/minecraft/class_1733;method_6843()Znamed getMagicLnet/minecraft/entity/damage/DamageSource;getMagic()Z
-
setUsesMagic
- Mappings:
Namespace Name Mixin selector official tLow;t()Low;intermediary method_6844Lnet/minecraft/class_1733;method_6844()Lnet/minecraft/class_1733;named setUsesMagicLnet/minecraft/entity/damage/DamageSource;setUsesMagic()Lnet/minecraft/entity/damage/DamageSource;
-
isSourceCreativePlayer
public boolean isSourceCreativePlayer()- Mappings:
Namespace Name Mixin selector official uLow;u()Zintermediary method_6845Lnet/minecraft/class_1733;method_6845()Znamed isSourceCreativePlayerLnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Z
-