content: package com.github.alexthe666.rats.server.items;
  
  import com.github.alexthe666.rats.registry.RatsToolMaterialRegistry;
  import net.minecraft.ChatFormatting;
  import net.minecraft.network.chat.Component;
  import net.minecraft.world.item.Item;
  import net.minecraft.world.item.ItemStack;
  import net.minecraft.world.item.SwordItem;
  import net.minecraft.world.item.TooltipFlag;
  import net.minecraft.world.level.Level;
  import net.minecraft.world.level.block.state.BlockState;
  import net.minecraftforge.common.ToolAction;
  import net.minecraftforge.common.ToolActions;
  import org.jetbrains.annotations.Nullable;
  
  import java.util.List;
  
  public class PlagueScytheItem extends SwordItem {
  	public PlagueScytheItem(Item.Properties properties) {
  		super(RatsToolMaterialRegistry.PLAGUE_SCYTHE, 3, -0.5F, properties);
  	}
  
  	@Override
  	public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> tooltip, TooltipFlag flag) {
  		tooltip.add(Component.translatable(this.getDescriptionId() + ".desc").withStyle(ChatFormatting.GRAY));
  	}
  
  	@Override
  	public float getDestroySpeed(ItemStack stack, BlockState state) {
  		return 1.0F;
  	}
  
  	@Override
  	public boolean isCorrectToolForDrops(BlockState state) {
  		return false;
  	}
  
  	@Override
  	public boolean canPerformAction(ItemStack stack, ToolAction toolAction) {
  		return toolAction == ToolActions.SWORD_SWEEP;
  	}
  }