Class SpectralArrowEntity

All Implemented Interfaces:
CommandOutput, Nameable, EntityLike

public class SpectralArrowEntity extends PersistentProjectileEntity
Mappings:
Namespace Name
official bxm
intermediary net/minecraft/class_1679
named net/minecraft/entity/projectile/SpectralArrowEntity
  • Field Details

    • duration

      private int duration
      Mappings:
      Namespace Name Mixin selector
      official f Lbxm;f:I
      intermediary field_7636 Lnet/minecraft/class_1679;field_7636:I
      named duration Lnet/minecraft/entity/projectile/SpectralArrowEntity;duration:I
  • Constructor Details

    • SpectralArrowEntity

      public SpectralArrowEntity(EntityType<? extends SpectralArrowEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbdr;<init>(Lbdv;Lcjw;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
    • SpectralArrowEntity

      public SpectralArrowEntity(World world, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxm;<init>(Lcjw;Lbeg;)V
      intermediary <init> Lnet/minecraft/class_1679;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)V
      named <init> Lnet/minecraft/entity/projectile/SpectralArrowEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
    • SpectralArrowEntity

      public SpectralArrowEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxm;<init>(Lcjw;DDD)V
      intermediary <init> Lnet/minecraft/class_1679;<init>(Lnet/minecraft/class_1937;DDD)V
      named <init> Lnet/minecraft/entity/projectile/SpectralArrowEntity;<init>(Lnet/minecraft/world/World;DDD)V
  • Method Details

    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class PersistentProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbdr;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • asItemStack

      protected ItemStack asItemStack()
      Specified by:
      asItemStack in class PersistentProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official k Lbwv;k()Lcdt;
      intermediary method_7445 Lnet/minecraft/class_1665;method_7445()Lnet/minecraft/class_1799;
      named asItemStack Lnet/minecraft/entity/projectile/PersistentProjectileEntity;asItemStack()Lnet/minecraft/item/ItemStack;
    • onHit

      protected void onHit(LivingEntity target)
      Overrides:
      onHit in class PersistentProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbwv;a(Lbeg;)V
      intermediary method_7450 Lnet/minecraft/class_1665;method_7450(Lnet/minecraft/class_1309;)V
      named onHit Lnet/minecraft/entity/projectile/PersistentProjectileEntity;onHit(Lnet/minecraft/entity/LivingEntity;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class PersistentProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbdr;a(Lqp;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class PersistentProjectileEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbdr;b(Lqp;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V