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 rd
intermediary net/minecraft/class_857
named net/minecraft/entity/damage/EntityDamageSource
  • Field Details

    • source

      protected Entity source
      Mappings:
      Namespace Name Mixin selector
      official s Lrd;s:Lrr;
      intermediary field_3148 Lnet/minecraft/class_857;field_3148:Lnet/minecraft/class_864;
      named source Lnet/minecraft/entity/damage/EntityDamageSource;source:Lnet/minecraft/entity/Entity;
    • thorns

      private boolean thorns
      Mappings:
      Namespace Name Mixin selector
      official t Lrd;t:Z
      intermediary field_11889 Lnet/minecraft/class_857;field_11889:Z
      named thorns Lnet/minecraft/entity/damage/EntityDamageSource;thorns:Z
  • Constructor Details

    • EntityDamageSource

      public EntityDamageSource(String name, Entity source)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrd;<init>(Ljava/lang/String;Lrr;)V
      intermediary <init> Lnet/minecraft/class_857;<init>(Ljava/lang/String;Lnet/minecraft/class_864;)V
      named <init> Lnet/minecraft/entity/damage/EntityDamageSource;<init>(Ljava/lang/String;Lnet/minecraft/entity/Entity;)V
  • Method Details

    • setThorns

      public EntityDamageSource setThorns()
      Mappings:
      Namespace Name Mixin selector
      official w Lrd;w()Lrd;
      intermediary method_10919 Lnet/minecraft/class_857;method_10919()Lnet/minecraft/class_857;
      named setThorns Lnet/minecraft/entity/damage/EntityDamageSource;setThorns()Lnet/minecraft/entity/damage/EntityDamageSource;
    • isThorns

      public boolean isThorns()
      Mappings:
      Namespace Name Mixin selector
      official x Lrd;x()Z
      intermediary method_10920 Lnet/minecraft/class_857;method_10920()Z
      named isThorns Lnet/minecraft/entity/damage/EntityDamageSource;isThorns()Z
    • getAttacker

      @Nullable public Entity getAttacker()
      Overrides:
      getAttacker in class DamageSource
      Mappings:
      Namespace Name Mixin selector
      official j Lrc;j()Lrr;
      intermediary method_2425 Lnet/minecraft/class_856;method_2425()Lnet/minecraft/class_864;
      named getAttacker Lnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
    • getDeathMessage

      public Text getDeathMessage(LivingEntity entity)
      Overrides:
      getDeathMessage in class DamageSource
      Mappings:
      Namespace Name Mixin selector
      official c Lrc;c(Lsa;)Lew;
      intermediary method_6079 Lnet/minecraft/class_856;method_6079(Lnet/minecraft/class_1699;)Lnet/minecraft/class_1982;
      named getDeathMessage Lnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
    • isScaledWithDifficulty

      public boolean isScaledWithDifficulty()
      Overrides:
      isScaledWithDifficulty in class DamageSource
      Mappings:
      Namespace Name Mixin selector
      official r Lrc;r()Z
      intermediary method_2432 Lnet/minecraft/class_856;method_2432()Z
      named isScaledWithDifficulty Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
    • getPosition

      @Nullable public Vec3d getPosition()
      Overrides:
      getPosition in class DamageSource
      Mappings:
      Namespace Name Mixin selector
      official v Lrc;v()Lbbh;
      intermediary method_12941 Lnet/minecraft/class_856;method_12941()Lnet/minecraft/class_236;
      named getPosition Lnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;