Class ProjectileDamageSource


public class ProjectileDamageSource extends EntityDamageSource
Mappings:
Namespace Name
official awf
intermediary net/minecraft/class_1284
named net/minecraft/entity/damage/ProjectileDamageSource
  • Field Details

    • attacker

      @Nullable private final @Nullable Entity attacker
      Mappings:
      Namespace Name Mixin selector
      official A Lawf;A:Lawt;
      intermediary field_5878 Lnet/minecraft/class_1284;field_5878:Lnet/minecraft/class_1297;
      named attacker Lnet/minecraft/entity/damage/ProjectileDamageSource;attacker:Lnet/minecraft/entity/Entity;
  • Constructor Details

    • ProjectileDamageSource

      public ProjectileDamageSource(String name, Entity projectile, @Nullable @Nullable Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lawf;<init>(Ljava/lang/String;Lawt;Lawt;)V
      intermediary <init> Lnet/minecraft/class_1284;<init>(Ljava/lang/String;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)V
      named <init> Lnet/minecraft/entity/damage/ProjectileDamageSource;<init>(Ljava/lang/String;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)V
  • Method Details

    • getSource

      @Nullable public @Nullable Entity getSource()
      Overrides:
      getSource in class DamageSource
      Mappings:
      Namespace Name Mixin selector
      official k Lawd;k()Lawt;
      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()
      Overrides:
      getAttacker in class EntityDamageSource
      Mappings:
      Namespace Name Mixin selector
      official l Lawd;l()Lawt;
      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 entity)
      Overrides:
      getDeathMessage in class EntityDamageSource
      Mappings:
      Namespace Name Mixin selector
      official a Lawd;a(Laxh;)Lpz;
      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;