Class SellHandler

java.lang.Object
me.clip.autosell.SellHandler

public class SellHandler
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.TreeMap<java.lang.Integer,​Shop> shops  
  • Constructor Summary

    Constructors 
    Constructor Description
    SellHandler()  
  • Method Summary

    Modifier and Type Method Description
    static void addShop​(Shop p)  
    static boolean autoSell​(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> toSell, org.bukkit.block.Block broken)  
    static boolean canSell​(org.bukkit.entity.Player p)  
    static int getNextShopPriority()  
    static Shop getPermShop​(org.bukkit.entity.Player p)  
    static Shop getShop​(java.lang.String shopName)  
    static Shop getShop​(org.bukkit.entity.Player p)  
    static Shop getShop​(org.bukkit.entity.Player p, org.bukkit.block.Block b)  
    static java.util.Map<java.lang.Integer,​Shop> getShops()  
    static boolean isShop​(java.lang.String shopName)  
    static boolean removeShop​(Shop s)  
    static SellResponse sellInventory​(org.bukkit.entity.Player p, Shop shop)  
    static SellResponse sellItems​(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> items, Shop shop)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • shops

      public static java.util.TreeMap<java.lang.Integer,​Shop> shops
  • Constructor Details

  • Method Details

    • getShops

      public static java.util.Map<java.lang.Integer,​Shop> getShops()
    • addShop

      public static void addShop​(Shop p)
    • removeShop

      public static boolean removeShop​(Shop s)
    • canSell

      public static boolean canSell​(org.bukkit.entity.Player p)
    • getNextShopPriority

      public static int getNextShopPriority()
    • isShop

      public static boolean isShop​(java.lang.String shopName)
    • getShop

      public static Shop getShop​(java.lang.String shopName)
    • getShop

      public static Shop getShop​(org.bukkit.entity.Player p)
    • getShop

      public static Shop getShop​(org.bukkit.entity.Player p, org.bukkit.block.Block b)
    • getPermShop

      public static Shop getPermShop​(org.bukkit.entity.Player p)
    • sellItems

      public static SellResponse sellItems​(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> items, Shop shop)
    • sellInventory

      public static SellResponse sellInventory​(org.bukkit.entity.Player p, Shop shop)
    • autoSell

      public static boolean autoSell​(org.bukkit.entity.Player p, java.util.List<org.bukkit.inventory.ItemStack> toSell, org.bukkit.block.Block broken)