Cool_boy21

ShopEntity

May 13th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. package ua.Coolboy.QuartzDefenders.Shop;
  2.  
  3. import org.bukkit.Location;
  4. import org.bukkit.entity.Villager;
  5. import org.bukkit.entity.Villager.Profession;
  6. import org.bukkit.potion.PotionEffect;
  7. import org.bukkit.potion.PotionEffectType;
  8. import ua.Endertainment.QuartzDefenders.Game;
  9. import ua.Endertainment.QuartzDefenders.QuartzDefenders;
  10.  
  11. public class ShopEntity {
  12.  
  13.     QuartzDefenders plugin;
  14.     Shop shop;
  15.     Game game;
  16.  
  17.     public ShopEntity(Location loc, QuartzDefenders plugin) {
  18.         this.plugin = plugin;
  19.         this.shop = new Shop(plugin);
  20.         Villager v = loc.getWorld().spawn(loc, Villager.class);
  21.         v.setCustomName(shop.name);
  22.         v.setCustomNameVisible(true);
  23.         v.setCanPickupItems(false);
  24.         v.setInvulnerable(true);
  25.         v.setProfession(Profession.NITWIT);
  26.         v.setSilent(true);
  27.         v.setAI(false);
  28.     }
  29.    
  30.     public void loadShops() {
  31.    
  32.     }
  33. }
Add Comment
Please, Sign In to add comment