Class DamageSource

java.lang.Object
net.minecraft.entity.damage.DamageSource

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

    • type

      private final RegistryEntry<DamageType> type
      Mappings:
      Namespace Name Mixin selector
      official a Lbho;a:Lhe;
      intermediary field_42291 Lnet/minecraft/class_1282;field_42291:Lnet/minecraft/class_6880;
      named type Lnet/minecraft/entity/damage/DamageSource;type:Lnet/minecraft/registry/entry/RegistryEntry;
    • attacker

      @Nullable private final @Nullable Entity attacker
      Mappings:
      Namespace Name Mixin selector
      official b Lbho;b:Lbiq;
      intermediary field_42292 Lnet/minecraft/class_1282;field_42292:Lnet/minecraft/class_1297;
      named attacker Lnet/minecraft/entity/damage/DamageSource;attacker:Lnet/minecraft/entity/Entity;
    • source

      @Nullable private final @Nullable Entity source
      Mappings:
      Namespace Name Mixin selector
      official c Lbho;c:Lbiq;
      intermediary field_42293 Lnet/minecraft/class_1282;field_42293:Lnet/minecraft/class_1297;
      named source Lnet/minecraft/entity/damage/DamageSource;source:Lnet/minecraft/entity/Entity;
    • position

      @Nullable private final @Nullable Vec3d position
      Mappings:
      Namespace Name Mixin selector
      official d Lbho;d:Lehn;
      intermediary field_42294 Lnet/minecraft/class_1282;field_42294:Lnet/minecraft/class_243;
      named position Lnet/minecraft/entity/damage/DamageSource;position:Lnet/minecraft/util/math/Vec3d;
  • Constructor Details

    • DamageSource

      private DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker, @Nullable @Nullable Vec3d position)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbho;<init>(Lhe;Lbiq;Lbiq;Lehn;)V
      intermediary <init> Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)V
      named <init> Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
    • DamageSource

      public DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbho;<init>(Lhe;Lbiq;Lbiq;)V
      intermediary <init> Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)V
      named <init> Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)V
    • DamageSource

      public DamageSource(RegistryEntry<DamageType> type, Vec3d position)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbho;<init>(Lhe;Lehn;)V
      intermediary <init> Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_243;)V
      named <init> Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;)V
    • DamageSource

      public DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbho;<init>(Lhe;Lbiq;)V
      intermediary <init> Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;)V
      named <init> Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;)V
    • DamageSource

      public DamageSource(RegistryEntry<DamageType> type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbho;<init>(Lhe;)V
      intermediary <init> Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;)V
      named <init> Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;)V
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getExhaustion

      public float getExhaustion()
      Mappings:
      Namespace Name Mixin selector
      official a Lbho;a()F
      intermediary method_5528 Lnet/minecraft/class_1282;method_5528()F
      named getExhaustion Lnet/minecraft/entity/damage/DamageSource;getExhaustion()F
    • isIndirect

      public boolean isIndirect()
      Mappings:
      Namespace Name Mixin selector
      official b Lbho;b()Z
      intermediary method_48790 Lnet/minecraft/class_1282;method_48790()Z
      named isIndirect Lnet/minecraft/entity/damage/DamageSource;isIndirect()Z
    • getSource

      @Nullable public @Nullable Entity getSource()
      Mappings:
      Namespace Name Mixin selector
      official c Lbho;c()Lbiq;
      intermediary method_5526 Lnet/minecraft/class_1282;method_5526()Lnet/minecraft/class_1297;
      named getSource Lnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;
    • getAttacker

      @Nullable public @Nullable Entity getAttacker()
      Mappings:
      Namespace Name Mixin selector
      official d Lbho;d()Lbiq;
      intermediary method_5529 Lnet/minecraft/class_1282;method_5529()Lnet/minecraft/class_1297;
      named getAttacker Lnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
    • getDeathMessage

      public Text getDeathMessage(LivingEntity killed)
      Mappings:
      Namespace Name Mixin selector
      official a Lbho;a(Lbjg;)Ltl;
      intermediary method_5506 Lnet/minecraft/class_1282;method_5506(Lnet/minecraft/class_1309;)Lnet/minecraft/class_2561;
      named getDeathMessage Lnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official e Lbho;e()Ljava/lang/String;
      intermediary method_5525 Lnet/minecraft/class_1282;method_5525()Ljava/lang/String;
      named getName Lnet/minecraft/entity/damage/DamageSource;getName()Ljava/lang/String;
    • isScaledWithDifficulty

      public boolean isScaledWithDifficulty()
      Mappings:
      Namespace Name Mixin selector
      official f Lbho;f()Z
      intermediary method_5514 Lnet/minecraft/class_1282;method_5514()Z
      named isScaledWithDifficulty Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
    • isSourceCreativePlayer

      public boolean isSourceCreativePlayer()
      Mappings:
      Namespace Name Mixin selector
      official g Lbho;g()Z
      intermediary method_5530 Lnet/minecraft/class_1282;method_5530()Z
      named isSourceCreativePlayer Lnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Z
    • getPosition

      @Nullable public @Nullable Vec3d getPosition()
      Mappings:
      Namespace Name Mixin selector
      official h Lbho;h()Lehn;
      intermediary method_5510 Lnet/minecraft/class_1282;method_5510()Lnet/minecraft/class_243;
      named getPosition Lnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;
    • getStoredPosition

      @Nullable public @Nullable Vec3d getStoredPosition()
      Mappings:
      Namespace Name Mixin selector
      official i Lbho;i()Lehn;
      intermediary method_48791 Lnet/minecraft/class_1282;method_48791()Lnet/minecraft/class_243;
      named getStoredPosition Lnet/minecraft/entity/damage/DamageSource;getStoredPosition()Lnet/minecraft/util/math/Vec3d;
    • isIn

      public boolean isIn(TagKey<DamageType> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lbho;a(Laqh;)Z
      intermediary method_48789 Lnet/minecraft/class_1282;method_48789(Lnet/minecraft/class_6862;)Z
      named isIn Lnet/minecraft/entity/damage/DamageSource;isIn(Lnet/minecraft/registry/tag/TagKey;)Z
    • isOf

      public boolean isOf(RegistryKey<DamageType> typeKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lbho;a(Laev;)Z
      intermediary method_49708 Lnet/minecraft/class_1282;method_49708(Lnet/minecraft/class_5321;)Z
      named isOf Lnet/minecraft/entity/damage/DamageSource;isOf(Lnet/minecraft/registry/RegistryKey;)Z
    • getType

      public DamageType getType()
      Mappings:
      Namespace Name Mixin selector
      official j Lbho;j()Lbhq;
      intermediary method_48792 Lnet/minecraft/class_1282;method_48792()Lnet/minecraft/class_8110;
      named getType Lnet/minecraft/entity/damage/DamageSource;getType()Lnet/minecraft/entity/damage/DamageType;
    • getTypeRegistryEntry

      public RegistryEntry<DamageType> getTypeRegistryEntry()
      Mappings:
      Namespace Name Mixin selector
      official k Lbho;k()Lhe;
      intermediary method_48793 Lnet/minecraft/class_1282;method_48793()Lnet/minecraft/class_6880;
      named getTypeRegistryEntry Lnet/minecraft/entity/damage/DamageSource;getTypeRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry;