hassansyyid

Untitled

Aug 4th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. package io.github.hsyyid.adminshop.utils;
  2.  
  3. import org.spongepowered.api.entity.player.Player;
  4. import org.spongepowered.api.world.Location;
  5.  
  6. public class AdminShop
  7. {
  8.     public Class type = this.getClass();
  9.     public int itemAmount;
  10.     public double price;
  11.     public String itemName;
  12.     public Location signLocation;
  13.    
  14.     public AdminShop(int itemAmount, double price, String itemName, Location signLocation)
  15.     {
  16.         this.itemAmount = itemAmount;
  17.         this.price = price;
  18.         this.itemName = itemName;
  19.         this.signLocation = signLocation;
  20.     }
  21.    
  22.     public void setItemAmount(int itemAmount)
  23.     {
  24.         this.itemAmount = itemAmount;
  25.     }
  26.    
  27.     public void setSignLocation(Location signLocation)
  28.     {
  29.         this.signLocation = signLocation;
  30.     }
  31.    
  32.     public void setPrice(double price)
  33.     {
  34.         this.price = price;
  35.     }
  36.    
  37.     public void setItemName(String itemName)
  38.     {
  39.         this.itemName = itemName;
  40.     }
  41.    
  42.     public int getItemAmount()
  43.     {
  44.         return itemAmount;
  45.     }
  46.    
  47.     public Location getSignLocation()
  48.     {
  49.         return signLocation;
  50.     }
  51.    
  52.     public double getPrice()
  53.     {
  54.         return price;
  55.     }
  56.    
  57.     public String getItemName()
  58.     {
  59.         return itemName;
  60.     }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment