content: package com.github.alexthe666.iceandfire.item;
  
  import com.github.alexthe666.iceandfire.IceAndFire;
  import com.github.alexthe666.iceandfire.entity.EntityStymphalianFeather;
  import com.github.alexthe666.iceandfire.entity.IafEntityRegistry;
  import net.minecraft.ChatFormatting;
  import net.minecraft.network.chat.Component;
  import net.minecraft.network.chat.TranslatableComponent;
  import net.minecraft.sounds.SoundEvents;
  import net.minecraft.world.InteractionHand;
  import net.minecraft.world.InteractionResult;
  import net.minecraft.world.InteractionResultHolder;
  import net.minecraft.world.entity.player.Player;
  import net.minecraft.world.item.Item;
  import net.minecraft.world.item.ItemStack;
  import net.minecraft.world.item.TooltipFlag;
  import net.minecraft.world.level.Level;
  import org.jetbrains.annotations.NotNull;
  
  import javax.annotation.Nullable;
  import java.util.List;
  
  public class ItemStymphalianFeatherBundle extends Item {
  
      public ItemStymphalianFeatherBundle() {
          super(new Item.Properties().tab(IceAndFire.TAB_ITEMS));
      }
  
      @Override
      public @NotNull InteractionResultHolder<ItemStack> use(@NotNull Level worldIn, Player player, @NotNull InteractionHand hand) {
          ItemStack itemStackIn = player.getItemInHand(hand);
          player.startUsingItem(hand);
          player.getCooldowns().addCooldown(this, 15);
          player.playSound(SoundEvents.EGG_THROW, 1, 1);
          float rotation = player.yHeadRot;
          for (int i = 0; i < 8; i++) {
              EntityStymphalianFeather feather = new EntityStymphalianFeather(IafEntityRegistry.STYMPHALIAN_FEATHER.get(),
                  worldIn, player);
              rotation += 45;
              feather.shootFromRotation(player, 0, rotation, 0.0F, 1.5F, 1.0F);
              if (!worldIn.isClientSide) {
                  worldIn.addFreshEntity(feather);
              }
          }
          if (!player.isCreative()) {
              itemStackIn.shrink(1);
          }
          return new InteractionResultHolder<ItemStack>(InteractionResult.PASS, itemStackIn);
      }
  
  
      @Override
      public void appendHoverText(@NotNull ItemStack stack, @Nullable Level worldIn, List<Component> tooltip, @NotNull TooltipFlag flagIn) {
  
          tooltip.add(new TranslatableComponent("item.iceandfire.legendary_weapon.desc").withStyle(ChatFormatting.GRAY));
          tooltip.add(new TranslatableComponent("item.iceandfire.stymphalian_feather_bundle.desc_0").withStyle(ChatFormatting.GRAY));
      }
  }