Class DamageSource

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

public class DamageSource extends Object
Mappings:
Namespace Name
official bkt
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 Lbkt;a:Lih;
      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 Lbkt;b:Lblv;
      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 Lbkt;c:Lblv;
      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 Lbkt;d:Lelt;
      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> Lbkt;<init>(Lih;Lblv;Lblv;Lelt;)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> Lbkt;<init>(Lih;Lblv;Lblv;)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> Lbkt;<init>(Lih;Lelt;)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> Lbkt;<init>(Lih;Lblv;)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> Lbkt;<init>(Lih;)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 Lbkt;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 Lbkt;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 Lbkt;c()Lblv;
      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 Lbkt;d()Lblv;
      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 Lbkt;a(Lbml;)Lvf;
      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 Lbkt;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 Lbkt;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 Lbkt;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 Lbkt;h()Lelt;
      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 Lbkt;i()Lelt;
      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 Lbkt;a(Lasw;)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 Lbkt;a(Lahf;)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 Lbkt;j()Lbkv;
      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 Lbkt;k()Lih;
      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;