content: package com.github.alexthe666.iceandfire.item;
  
  import com.github.alexthe666.iceandfire.IceAndFire;
  import net.minecraft.world.effect.MobEffectInstance;
  import net.minecraft.world.effect.MobEffects;
  import net.minecraft.world.entity.Entity;
  import net.minecraft.world.entity.EquipmentSlot;
  import net.minecraft.world.entity.player.Player;
  import net.minecraft.world.item.ArmorItem;
  import net.minecraft.world.item.Item;
  import net.minecraft.world.item.ItemStack;
  import net.minecraft.world.level.Level;
  
  public class ItemBlindfold extends ArmorItem {
  
      public ItemBlindfold() {
          super(IafItemRegistry.BLINDFOLD_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Properties().tab(IceAndFire.TAB_ITEMS));
      }
  
      @Override
      public void onArmorTick(ItemStack stack, Level world, Player player) {
          super.onArmorTick(stack, world, player);
          player.addEffect(new MobEffectInstance(MobEffects.BLINDNESS, 50, 0, false, false));
      }
  
      @Override
      public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) {
          return "iceandfire:textures/models/armor/blindfold_layer_1.png";
      }
  }
  