package gvclib.item.gun;

import gvclib.item.ItemAttachment;
import gvclib.item.ItemGunBase;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;

import java.io.BufferedReader;

public class GunAttachment {
    public static void load(ItemStack stack, Level worldIn, Entity entityIn, int itemSlot){
        Player entityplayer = (Player)entityIn;
        if(!stack.isEmpty() && stack.getItem() instanceof ItemGunBase) {
            ItemGunBase gun = (ItemGunBase) stack.getItem();
            if(!gun.sight.isEmpty() && gun.sight.getItem()  instanceof ItemAttachment){
                ItemAttachment sight = (ItemAttachment) gun.sight.getItem();
            }
        }
    }
}
