Class ShopCustomizer

java.lang.Object
studio.magemonkey.genesis.managers.ShopCustomizer

public class ShopCustomizer extends Object
  • Constructor Details

    • ShopCustomizer

      public ShopCustomizer()
  • Method Details

    • createInventory

      public org.bukkit.inventory.Inventory createInventory(GenesisShop shop, Set<GenesisBuy> items, org.bukkit.entity.Player p, ClassManager m, int page, int highestPage, GenesisShopHolder oldShopHolder)
      Create a new inventory
      Parameters:
      shop - the shop to create from
      items - the items in the shop
      p - the player opening the shop
      m - the class manager
      page - the page of the shop
      highestPage - the highest page for the shop
      oldShopHolder - the holder of the shop
      Returns:
      inventory
    • createInventory

      public org.bukkit.inventory.Inventory createInventory(GenesisShop shop, Set<GenesisBuy> items, org.bukkit.entity.Player p, ClassManager m, org.bukkit.inventory.Inventory inventory, int page, int highestPage)
      Create a new inventory
      Parameters:
      shop - the shop to create from
      items - the items for the inventory
      p - the player opening
      m - the class manager
      inventory - the inventory being opened
      page - the page of the shop
      highestPage - the amount of pages for shop
      Returns:
      inventory
    • createInventory

      public org.bukkit.inventory.Inventory createInventory(GenesisShop shop, Set<GenesisBuy> items, org.bukkit.entity.Player p, ClassManager m, org.bukkit.inventory.Inventory inventory, GenesisShopHolder holder, int page)
      Create a new inventory
      Parameters:
      shop - the shop to open as
      items - the items in the shop
      p - the player opening
      m - the class manager
      inventory - the inventory to open as
      holder - the holder of the inventory
      page - the page of the inventory
      Returns:
      inventory
    • showItem

      public boolean showItem(GenesisShop shop, GenesisShopHolder holder, GenesisBuy buy, org.bukkit.entity.Player p, org.bukkit.inventory.Inventory inventory, Map<Integer,GenesisBuy> filledLocs)
      Show the item in an inventory
      Parameters:
      shop - the shop to get from
      holder - the holder of the shop
      buy - the shop item
      p - the player opening the shop
      inventory - the inventory of the shop
      filledLocs - the filled locations of the shop
      Returns:
      show or not
    • getSlot

      public int getSlot(org.bukkit.inventory.Inventory inventory, Map<Integer,GenesisBuy> everything, GenesisBuy buy)
      Get a slot position
      Parameters:
      inventory - the inventory of the shop
      everything - all items loaded in the inventory
      buy - the item being checked
      Returns:
      slot of item
    • getFirstFreeSlot

      public int getFirstFreeSlot(org.bukkit.inventory.Inventory inventory, Map<Integer,GenesisBuy> everything)
      Get the first free slot in an inventory
      Parameters:
      inventory - the inventory to check
      everything - the items loaded in the inventory
      Returns:
      first free slot