Class InventoryRenderer

java.lang.Object
org.screamingsandals.simpleinventories.render.InventoryRenderer

public abstract class InventoryRenderer extends Object
  • Field Details

    • player

      protected final org.screamingsandals.lib.player.PlayerWrapper player
    • subInventory

      protected SubInventory subInventory
    • page

      protected int page
    • itemInfoMap

      protected final Map<Integer,PlayerItemInfo> itemInfoMap
    • itemStacksInInventory

      protected final Map<Integer,org.screamingsandals.lib.item.Item> itemStacksInInventory
    • animations

      protected final Map<Integer,List<org.screamingsandals.lib.item.Item>> animations
    • animator

      protected org.screamingsandals.lib.tasker.task.TaskerTask animator
    • nextAnimationPosition

      protected int nextAnimationPosition
    • mainEventCalled

      protected boolean mainEventCalled
  • Constructor Details

    • InventoryRenderer

      public InventoryRenderer(org.screamingsandals.lib.player.PlayerWrapper player, SubInventory subInventory, int page)
  • Method Details

    • nextPage

      public boolean nextPage()
    • previousPage

      public boolean previousPage()
    • jumpToPage

      public boolean jumpToPage(int page)
    • jump

      public boolean jump(SubInventory subInventory)
    • jump

      public boolean jump(SubInventory subInventory, int page)
    • jump

      public boolean jump(InventorySet inventorySet)
    • jump

      public boolean jump(InventorySet inventorySet, int page)
    • jump

      public boolean jump(InventoryLink inventoryLink)
    • render

      public void render()
    • close

      public void close()
    • clear

      protected void clear()
    • getTitle

      protected net.kyori.adventure.text.Component getTitle()
    • generateNewData

      protected void generateNewData()
    • safePutStackToInventory

      protected void safePutStackToInventory(int max, int position, org.screamingsandals.lib.item.Item stack)
    • isOnThisPage

      protected boolean isOnThisPage(GenericItemInfo item)
    • renderOnPlatform

      protected abstract void renderOnPlatform()
    • isOpened

      public abstract boolean isOpened()
    • getPlayer

      public org.screamingsandals.lib.player.PlayerWrapper getPlayer()
    • getSubInventory

      public SubInventory getSubInventory()
    • getPage

      public int getPage()
    • getItemInfoMap

      public Map<Integer,PlayerItemInfo> getItemInfoMap()
    • getItemStacksInInventory

      public Map<Integer,org.screamingsandals.lib.item.Item> getItemStacksInInventory()
    • getAnimations

      public Map<Integer,List<org.screamingsandals.lib.item.Item>> getAnimations()
    • getAnimator

      public org.screamingsandals.lib.tasker.task.TaskerTask getAnimator()
    • getNextAnimationPosition

      public int getNextAnimationPosition()
    • isMainEventCalled

      public boolean isMainEventCalled()