Class ProjectileDamageSource


public class ProjectileDamageSource extends EntityDamageSource
Mappings:
Namespace Name
official avy
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 Lavy;A:Lawm;
      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> Lavy;<init>(Ljava/lang/String;Lawm;Lawm;)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 Lavw;k()Lawm;
      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 Lavw;l()Lawm;
      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 Lavw;a(Laxa;)Lpt;
      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;