Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1. public static class LoadoutItemStack{
  2.         public Material mat = Material.AIR;
  3.         public String displayName = "";
  4.         public List<String> lore = new ArrayList<String>();
  5.         public boolean wassRefrence;
  6.         public int repairCosts = 0;
  7.        
  8.         public LoadoutItemStack(Material mat, String customName, ArrayList<String> lore){
  9.             this.mat = mat;
  10.             this.displayName = customName;
  11.             this.lore = lore;
  12.             wassRefrence = false;
  13.         }
  14.        
  15.         public LoadoutItemStack(ItemStack is){
  16.             this.mat = is.getType();
  17.             this.displayName = is.getItemMeta().getDisplayName();
  18.             this.lore = is.getItemMeta().getLore();
  19.             wassRefrence = false;
  20.         }
  21.        
  22.         public LoadoutItemStack(String weaponName){
  23.             displayName = weaponName;
  24.             wassRefrence = true;
  25.         }
  26.        
  27.         public ItemStack getItemStack(){
  28.             if(!wassRefrence){
  29.                 return Refrence.customIS_(mat, 1, displayName, lore, null);
  30.             }else{
  31.                 return Refrence.getShot().generateWeapon(displayName);
  32.             }
  33.         }
  34.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement