Class DamageSource

java.lang.Object
net.minecraft.entity.damage.DamageSource
Direct Known Subclasses:
EntityDamageSource

public class DamageSource
extends Object
Mappings:
Namespace Name
official ow
intermediary net/minecraft/class_1733
named net/minecraft/entity/damage/DamageSource
  • Field Details

    • FIRE

      public static DamageSource FIRE
      Mappings:
      Namespace Name Mixin selector
      official a Low;a:Low;
      intermediary field_7246 Lnet/minecraft/class_1733;field_7246:Lnet/minecraft/class_1733;
      named FIRE Lnet/minecraft/entity/damage/DamageSource;FIRE:Lnet/minecraft/entity/damage/DamageSource;
    • LIGHTNING_BOLT

      public static DamageSource LIGHTNING_BOLT
      Mappings:
      Namespace Name Mixin selector
      official b Low;b:Low;
      intermediary field_7247 Lnet/minecraft/class_1733;field_7247:Lnet/minecraft/class_1733;
      named LIGHTNING_BOLT Lnet/minecraft/entity/damage/DamageSource;LIGHTNING_BOLT:Lnet/minecraft/entity/damage/DamageSource;
    • ON_FIRE

      public static DamageSource ON_FIRE
      Mappings:
      Namespace Name Mixin selector
      official c Low;c:Low;
      intermediary field_7248 Lnet/minecraft/class_1733;field_7248:Lnet/minecraft/class_1733;
      named ON_FIRE Lnet/minecraft/entity/damage/DamageSource;ON_FIRE:Lnet/minecraft/entity/damage/DamageSource;
    • LAVA

      public static DamageSource LAVA
      Mappings:
      Namespace Name Mixin selector
      official d Low;d:Low;
      intermediary field_7249 Lnet/minecraft/class_1733;field_7249:Lnet/minecraft/class_1733;
      named LAVA Lnet/minecraft/entity/damage/DamageSource;LAVA:Lnet/minecraft/entity/damage/DamageSource;
    • IN_WALL

      public static DamageSource IN_WALL
      Mappings:
      Namespace Name Mixin selector
      official e Low;e:Low;
      intermediary field_7250 Lnet/minecraft/class_1733;field_7250:Lnet/minecraft/class_1733;
      named IN_WALL Lnet/minecraft/entity/damage/DamageSource;IN_WALL:Lnet/minecraft/entity/damage/DamageSource;
    • DROWN

      public static DamageSource DROWN
      Mappings:
      Namespace Name Mixin selector
      official f Low;f:Low;
      intermediary field_7251 Lnet/minecraft/class_1733;field_7251:Lnet/minecraft/class_1733;
      named DROWN Lnet/minecraft/entity/damage/DamageSource;DROWN:Lnet/minecraft/entity/damage/DamageSource;
    • STARVE

      public static DamageSource STARVE
      Mappings:
      Namespace Name Mixin selector
      official g Low;g:Low;
      intermediary field_7252 Lnet/minecraft/class_1733;field_7252:Lnet/minecraft/class_1733;
      named STARVE Lnet/minecraft/entity/damage/DamageSource;STARVE:Lnet/minecraft/entity/damage/DamageSource;
    • CACTUS

      public static DamageSource CACTUS
      Mappings:
      Namespace Name Mixin selector
      official h Low;h:Low;
      intermediary field_7253 Lnet/minecraft/class_1733;field_7253:Lnet/minecraft/class_1733;
      named CACTUS Lnet/minecraft/entity/damage/DamageSource;CACTUS:Lnet/minecraft/entity/damage/DamageSource;
    • FALL

      public static DamageSource FALL
      Mappings:
      Namespace Name Mixin selector
      official i Low;i:Low;
      intermediary field_7254 Lnet/minecraft/class_1733;field_7254:Lnet/minecraft/class_1733;
      named FALL Lnet/minecraft/entity/damage/DamageSource;FALL:Lnet/minecraft/entity/damage/DamageSource;
    • OUT_OF_WORLD

      public static DamageSource OUT_OF_WORLD
      Mappings:
      Namespace Name Mixin selector
      official j Low;j:Low;
      intermediary field_7255 Lnet/minecraft/class_1733;field_7255:Lnet/minecraft/class_1733;
      named OUT_OF_WORLD Lnet/minecraft/entity/damage/DamageSource;OUT_OF_WORLD:Lnet/minecraft/entity/damage/DamageSource;
    • GENERIC

      public static DamageSource GENERIC
      Mappings:
      Namespace Name Mixin selector
      official k Low;k:Low;
      intermediary field_7256 Lnet/minecraft/class_1733;field_7256:Lnet/minecraft/class_1733;
      named GENERIC Lnet/minecraft/entity/damage/DamageSource;GENERIC:Lnet/minecraft/entity/damage/DamageSource;
    • MAGIC

      public static DamageSource MAGIC
      Mappings:
      Namespace Name Mixin selector
      official l Low;l:Low;
      intermediary field_7257 Lnet/minecraft/class_1733;field_7257:Lnet/minecraft/class_1733;
      named MAGIC Lnet/minecraft/entity/damage/DamageSource;MAGIC:Lnet/minecraft/entity/damage/DamageSource;
    • WITHER

      public static DamageSource WITHER
      Mappings:
      Namespace Name Mixin selector
      official m Low;m:Low;
      intermediary field_7258 Lnet/minecraft/class_1733;field_7258:Lnet/minecraft/class_1733;
      named WITHER Lnet/minecraft/entity/damage/DamageSource;WITHER:Lnet/minecraft/entity/damage/DamageSource;
    • ANVIL

      public static DamageSource ANVIL
      Mappings:
      Namespace Name Mixin selector
      official n Low;n:Low;
      intermediary field_7259 Lnet/minecraft/class_1733;field_7259:Lnet/minecraft/class_1733;
      named ANVIL Lnet/minecraft/entity/damage/DamageSource;ANVIL:Lnet/minecraft/entity/damage/DamageSource;
    • FALLING_BLOCK

      public static DamageSource FALLING_BLOCK
      Mappings:
      Namespace Name Mixin selector
      official o Low;o:Low;
      intermediary field_7260 Lnet/minecraft/class_1733;field_7260:Lnet/minecraft/class_1733;
      named FALLING_BLOCK Lnet/minecraft/entity/damage/DamageSource;FALLING_BLOCK:Lnet/minecraft/entity/damage/DamageSource;
    • bypassesArmor

      private boolean bypassesArmor
      Mappings:
      Namespace Name Mixin selector
      official q Low;q:Z
      intermediary field_7262 Lnet/minecraft/class_1733;field_7262:Z
      named bypassesArmor Lnet/minecraft/entity/damage/DamageSource;bypassesArmor:Z
    • outOfWorld

      private boolean outOfWorld
      Mappings:
      Namespace Name Mixin selector
      official r Low;r:Z
      intermediary field_7263 Lnet/minecraft/class_1733;field_7263:Z
      named outOfWorld Lnet/minecraft/entity/damage/DamageSource;outOfWorld:Z
    • unblockable

      private boolean unblockable
      Mappings:
      Namespace Name Mixin selector
      official s Low;s:Z
      intermediary field_7264 Lnet/minecraft/class_1733;field_7264:Z
      named unblockable Lnet/minecraft/entity/damage/DamageSource;unblockable:Z
    • exhaustion

      private float exhaustion
      Mappings:
      Namespace Name Mixin selector
      official t Low;t:F
      intermediary field_7265 Lnet/minecraft/class_1733;field_7265:F
      named exhaustion Lnet/minecraft/entity/damage/DamageSource;exhaustion:F
    • fire

      private boolean fire
      Mappings:
      Namespace Name Mixin selector
      official u Low;u:Z
      intermediary field_7266 Lnet/minecraft/class_1733;field_7266:Z
      named fire Lnet/minecraft/entity/damage/DamageSource;fire:Z
    • projectile

      private boolean projectile
      Mappings:
      Namespace Name Mixin selector
      official v Low;v:Z
      intermediary field_7267 Lnet/minecraft/class_1733;field_7267:Z
      named projectile Lnet/minecraft/entity/damage/DamageSource;projectile:Z
    • scaleWithDifficulty

      private boolean scaleWithDifficulty
      Mappings:
      Namespace Name Mixin selector
      official w Low;w:Z
      intermediary field_7268 Lnet/minecraft/class_1733;field_7268:Z
      named scaleWithDifficulty Lnet/minecraft/entity/damage/DamageSource;scaleWithDifficulty:Z
    • magic

      private boolean magic
      Mappings:
      Namespace Name Mixin selector
      official x Low;x:Z
      intermediary field_7269 Lnet/minecraft/class_1733;field_7269:Z
      named magic Lnet/minecraft/entity/damage/DamageSource;magic:Z
    • explosive

      private boolean explosive
      Mappings:
      Namespace Name Mixin selector
      official y Low;y:Z
      intermediary field_7270 Lnet/minecraft/class_1733;field_7270:Z
      named explosive Lnet/minecraft/entity/damage/DamageSource;explosive:Z
    • name

      public String name
      Mappings:
      Namespace Name Mixin selector
      official p Low;p:Ljava/lang/String;
      intermediary field_7261 Lnet/minecraft/class_1733;field_7261:Ljava/lang/String;
      named name Lnet/minecraft/entity/damage/DamageSource;name:Ljava/lang/String;
  • Constructor Details

    • DamageSource

      protected DamageSource​(String string)
  • Method Details

    • mob

      public static DamageSource mob​(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Lpr;)Low;
      intermediary method_6820 Lnet/minecraft/class_1733;method_6820(Lnet/minecraft/class_1752;)Lnet/minecraft/class_1733;
      named mob Lnet/minecraft/entity/damage/DamageSource;mob(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/damage/DamageSource;
    • player

      public static DamageSource player​(PlayerEntity attacker)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Lwn;)Low;
      intermediary method_6821 Lnet/minecraft/class_1733;method_6821(Lnet/minecraft/class_1963;)Lnet/minecraft/class_1733;
      named player Lnet/minecraft/entity/damage/DamageSource;player(Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/entity/damage/DamageSource;
    • arrow

      public static DamageSource arrow​(ArrowEntity arrow, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Lwq;Lpk;)Low;
      intermediary method_6822 Lnet/minecraft/class_1733;method_6822(Lnet/minecraft/class_1967;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;
      named arrow Lnet/minecraft/entity/damage/DamageSource;arrow(Lnet/minecraft/entity/projectile/ArrowEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
    • fire

      public static DamageSource fire​(ProjectileEntity projectileEntity, Entity entity)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Lws;Lpk;)Low;
      intermediary method_6823 Lnet/minecraft/class_1733;method_6823(Lnet/minecraft/class_1969;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;
      named fire Lnet/minecraft/entity/damage/DamageSource;fire(Lnet/minecraft/entity/projectile/ProjectileEntity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
    • thrownProjectile

      public static DamageSource thrownProjectile​(Entity projectile, Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Lpk;Lpk;)Low;
      intermediary method_6819 Lnet/minecraft/class_1733;method_6819(Lnet/minecraft/class_1745;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;
      named thrownProjectile Lnet/minecraft/entity/damage/DamageSource;thrownProjectile(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
    • magic

      public static DamageSource magic​(Entity magic, Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official b Low;b(Lpk;Lpk;)Low;
      intermediary method_6825 Lnet/minecraft/class_1733;method_6825(Lnet/minecraft/class_1745;Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;
      named magic Lnet/minecraft/entity/damage/DamageSource;magic(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
    • thorns

      public static DamageSource thorns​(Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Lpk;)Low;
      intermediary method_6818 Lnet/minecraft/class_1733;method_6818(Lnet/minecraft/class_1745;)Lnet/minecraft/class_1733;
      named thorns Lnet/minecraft/entity/damage/DamageSource;thorns(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/damage/DamageSource;
    • explosion

      public static DamageSource explosion​(Explosion explosion)
      Mappings:
      Namespace Name Mixin selector
      official a Low;a(Ladi;)Low;
      intermediary method_6817 Lnet/minecraft/class_1733;method_6817(Lnet/minecraft/class_93;)Lnet/minecraft/class_1733;
      named explosion Lnet/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 a Low;a()Z
      intermediary method_6816 Lnet/minecraft/class_1733;method_6816()Z
      named isProjectile Lnet/minecraft/entity/damage/DamageSource;isProjectile()Z
    • setProjectile

      public DamageSource setProjectile()
      Mappings:
      Namespace Name Mixin selector
      official b Low;b()Low;
      intermediary method_6824 Lnet/minecraft/class_1733;method_6824()Lnet/minecraft/class_1733;
      named setProjectile Lnet/minecraft/entity/damage/DamageSource;setProjectile()Lnet/minecraft/entity/damage/DamageSource;
    • isExplosive

      public boolean isExplosive()
      Mappings:
      Namespace Name Mixin selector
      official c Low;c()Z
      intermediary method_6827 Lnet/minecraft/class_1733;method_6827()Z
      named isExplosive Lnet/minecraft/entity/damage/DamageSource;isExplosive()Z
    • setExplosive

      public DamageSource setExplosive()
      Mappings:
      Namespace Name Mixin selector
      official d Low;d()Low;
      intermediary method_6828 Lnet/minecraft/class_1733;method_6828()Lnet/minecraft/class_1733;
      named setExplosive Lnet/minecraft/entity/damage/DamageSource;setExplosive()Lnet/minecraft/entity/damage/DamageSource;
    • bypassesArmor

      public boolean bypassesArmor()
      Mappings:
      Namespace Name Mixin selector
      official e Low;e()Z
      intermediary method_6829 Lnet/minecraft/class_1733;method_6829()Z
      named bypassesArmor Lnet/minecraft/entity/damage/DamageSource;bypassesArmor()Z
    • getExhaustion

      public float getExhaustion()
      Mappings:
      Namespace Name Mixin selector
      official f Low;f()F
      intermediary method_6830 Lnet/minecraft/class_1733;method_6830()F
      named getExhaustion Lnet/minecraft/entity/damage/DamageSource;getExhaustion()F
    • isOutOfWorld

      public boolean isOutOfWorld()
      Mappings:
      Namespace Name Mixin selector
      official g Low;g()Z
      intermediary method_6831 Lnet/minecraft/class_1733;method_6831()Z
      named isOutOfWorld Lnet/minecraft/entity/damage/DamageSource;isOutOfWorld()Z
    • isUnblockable

      public boolean isUnblockable()
      Mappings:
      Namespace Name Mixin selector
      official h Low;h()Z
      intermediary method_6832 Lnet/minecraft/class_1733;method_6832()Z
      named isUnblockable Lnet/minecraft/entity/damage/DamageSource;isUnblockable()Z
    • getSource

      public Entity getSource()
      Mappings:
      Namespace Name Mixin selector
      official i Low;i()Lpk;
      intermediary method_6833 Lnet/minecraft/class_1733;method_6833()Lnet/minecraft/class_1745;
      named getSource Lnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;
    • getAttacker

      public Entity getAttacker()
      Mappings:
      Namespace Name Mixin selector
      official j Low;j()Lpk;
      intermediary method_6834 Lnet/minecraft/class_1733;method_6834()Lnet/minecraft/class_1745;
      named getAttacker Lnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
    • setBypassesArmor

      protected DamageSource setBypassesArmor()
      Mappings:
      Namespace Name Mixin selector
      official k Low;k()Low;
      intermediary method_6835 Lnet/minecraft/class_1733;method_6835()Lnet/minecraft/class_1733;
      named setBypassesArmor Lnet/minecraft/entity/damage/DamageSource;setBypassesArmor()Lnet/minecraft/entity/damage/DamageSource;
    • setOutOfWorld

      protected DamageSource setOutOfWorld()
      Mappings:
      Namespace Name Mixin selector
      official l Low;l()Low;
      intermediary method_6836 Lnet/minecraft/class_1733;method_6836()Lnet/minecraft/class_1733;
      named setOutOfWorld Lnet/minecraft/entity/damage/DamageSource;setOutOfWorld()Lnet/minecraft/entity/damage/DamageSource;
    • setUnblockable

      protected DamageSource setUnblockable()
      Mappings:
      Namespace Name Mixin selector
      official m Low;m()Low;
      intermediary method_6837 Lnet/minecraft/class_1733;method_6837()Lnet/minecraft/class_1733;
      named setUnblockable Lnet/minecraft/entity/damage/DamageSource;setUnblockable()Lnet/minecraft/entity/damage/DamageSource;
    • setFire

      protected DamageSource setFire()
      Mappings:
      Namespace Name Mixin selector
      official n Low;n()Low;
      intermediary method_6838 Lnet/minecraft/class_1733;method_6838()Lnet/minecraft/class_1733;
      named setFire Lnet/minecraft/entity/damage/DamageSource;setFire()Lnet/minecraft/entity/damage/DamageSource;
    • method_6826

      public Text method_6826​(LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Low;b(Lpr;)Leu;
      intermediary method_6826 Lnet/minecraft/class_1733;method_6826(Lnet/minecraft/class_1752;)Lnet/minecraft/class_1444;
      named method_6826 Lnet/minecraft/entity/damage/DamageSource;method_6826(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
    • isFire

      public boolean isFire()
      Mappings:
      Namespace Name Mixin selector
      official o Low;o()Z
      intermediary method_6839 Lnet/minecraft/class_1733;method_6839()Z
      named isFire Lnet/minecraft/entity/damage/DamageSource;isFire()Z
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official p Low;p()Ljava/lang/String;
      intermediary method_6840 Lnet/minecraft/class_1733;method_6840()Ljava/lang/String;
      named getName Lnet/minecraft/entity/damage/DamageSource;getName()Ljava/lang/String;
    • setScaledWithDifficulty

      public DamageSource setScaledWithDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official q Low;q()Low;
      intermediary method_6841 Lnet/minecraft/class_1733;method_6841()Lnet/minecraft/class_1733;
      named setScaledWithDifficulty Lnet/minecraft/entity/damage/DamageSource;setScaledWithDifficulty()Lnet/minecraft/entity/damage/DamageSource;
    • isScaledWithDifficulty

      public boolean isScaledWithDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official r Low;r()Z
      intermediary method_6842 Lnet/minecraft/class_1733;method_6842()Z
      named isScaledWithDifficulty Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
    • getMagic

      public boolean getMagic()
      Mappings:
      Namespace Name Mixin selector
      official s Low;s()Z
      intermediary method_6843 Lnet/minecraft/class_1733;method_6843()Z
      named getMagic Lnet/minecraft/entity/damage/DamageSource;getMagic()Z
    • setUsesMagic

      public DamageSource setUsesMagic()
      Mappings:
      Namespace Name Mixin selector
      official t Low;t()Low;
      intermediary method_6844 Lnet/minecraft/class_1733;method_6844()Lnet/minecraft/class_1733;
      named setUsesMagic Lnet/minecraft/entity/damage/DamageSource;setUsesMagic()Lnet/minecraft/entity/damage/DamageSource;
    • isSourceCreativePlayer

      public boolean isSourceCreativePlayer()
      Mappings:
      Namespace Name Mixin selector
      official u Low;u()Z
      intermediary method_6845 Lnet/minecraft/class_1733;method_6845()Z
      named isSourceCreativePlayer Lnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Z