Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class LoadoutItemStack{
- public Material mat = Material.AIR;
- public String displayName = "";
- public List<String> lore = new ArrayList<String>();
- public boolean wassRefrence;
- public int repairCosts = 0;
- public LoadoutItemStack(Material mat, String customName, ArrayList<String> lore){
- this.mat = mat;
- this.displayName = customName;
- this.lore = lore;
- wassRefrence = false;
- }
- public LoadoutItemStack(ItemStack is){
- this.mat = is.getType();
- this.displayName = is.getItemMeta().getDisplayName();
- this.lore = is.getItemMeta().getLore();
- wassRefrence = false;
- }
- public LoadoutItemStack(String weaponName){
- displayName = weaponName;
- wassRefrence = true;
- }
- public ItemStack getItemStack(){
- if(!wassRefrence){
- return Refrence.customIS_(mat, 1, displayName, lore, null);
- }else{
- return Refrence.getShot().generateWeapon(displayName);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement