Class ProjectileDamageSource


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

    • attacker

      private final Entity attacker
      Mappings:
      Namespace Name Mixin selector
      official A Laqh;A:Laqv;
      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 Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqh;<init>(Ljava/lang/String;Laqv;Laqv;)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 Entity getSource()
      Overrides:
      getSource in class DamageSource
      Mappings:
      Namespace Name Mixin selector
      official k Laqf;k()Laqv;
      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 Entity getAttacker()
      Overrides:
      getAttacker in class EntityDamageSource
      Mappings:
      Namespace Name Mixin selector
      official l Laqf;l()Laqv;
      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 Laqf;a(Lari;)Loi;
      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;