diff --git a/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/ModItems.java b/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/ModItems.java index cc16e38..353301a 100644 --- a/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/ModItems.java +++ b/src/main/java/cn/crtlprototypestudios/precisemanufacturing/foundation/ModItems.java @@ -308,21 +308,21 @@ public static void register(){ Main.LOGGER.info("Registering Mod Items"); } -// public static ItemStack buildAmmo(String ammoId){ -// CompoundTag itemTag = new CompoundTag(); -// itemTag.putString("AmmoId", ammoId); -// ItemStack result = new ItemStack(com.tacz.guns.init.ModItems.AMMO.get()); -// result.setTag(itemTag); -// -// return result; -// } -// -// public static ItemStack buildGun(String gunId){ -// CompoundTag itemTag = new CompoundTag(); -// itemTag.putString("GunId", gunId); -// ItemStack result = new ItemStack(com.tacz.guns.init.ModItems.MODERN_KINETIC_GUN.get()); -// result.setTag(itemTag); -// -// return result; -// } + public static ItemStack buildAmmo(String ammoId){ + CompoundTag itemTag = new CompoundTag(); + itemTag.putString("AmmoId", ammoId); + ItemStack result = new ItemStack(com.tacz.guns.init.ModItems.AMMO.get()); + result.setTag(itemTag); + + return result; + } + + public static ItemStack buildGun(String gunId){ + CompoundTag itemTag = new CompoundTag(); + itemTag.putString("GunId", gunId); + ItemStack result = new ItemStack(com.tacz.guns.init.ModItems.MODERN_KINETIC_GUN.get()); + result.setTag(itemTag); + + return result; + } }