Skip to content

Commit

Permalink
Util func
Browse files Browse the repository at this point in the history
Signed-off-by: Type-32 <[email protected]>
  • Loading branch information
Type-32 committed Jun 11, 2024
1 parent 3e18edd commit 38aace8
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 38aace8

Please sign in to comment.