Class ProjectileDamageSource


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

    • attacker

      private final Entity attacker
      Mappings:
      Namespace Name Mixin selector
      official w Lsa;w:Lsn;
      intermediary field_3149 Lnet/minecraft/class_858;field_3149:Lnet/minecraft/class_864;
      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> Lsa;<init>(Ljava/lang/String;Lsn;Lsn;)V
      intermediary <init> Lnet/minecraft/class_858;<init>(Ljava/lang/String;Lnet/minecraft/class_864;Lnet/minecraft/class_864;)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 i Lry;i()Lsn;
      intermediary method_2424 Lnet/minecraft/class_856;method_2424()Lnet/minecraft/class_864;
      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 j Lry;j()Lsn;
      intermediary method_2425 Lnet/minecraft/class_856;method_2425()Lnet/minecraft/class_864;
      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 c Lry;c(Lsw;)Lfb;
      intermediary method_6079 Lnet/minecraft/class_856;method_6079(Lnet/minecraft/class_1699;)Lnet/minecraft/class_1982;
      named getDeathMessage Lnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;