Class InventoryRenderer
java.lang.Object
org.screamingsandals.simpleinventories.render.InventoryRenderer
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.screamingsandals.lib.tasker.task.TaskerTask
protected final Map<Integer,
PlayerItemInfo> protected boolean
protected int
protected int
protected final org.screamingsandals.lib.player.PlayerWrapper
protected SubInventory
-
Constructor Summary
ConstructorDescriptionInventoryRenderer
(org.screamingsandals.lib.player.PlayerWrapper player, SubInventory subInventory, int page) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clear()
void
close()
protected void
org.screamingsandals.lib.tasker.task.TaskerTask
int
int
getPage()
org.screamingsandals.lib.player.PlayerWrapper
protected net.kyori.adventure.text.Component
getTitle()
boolean
protected boolean
isOnThisPage
(GenericItemInfo item) abstract boolean
isOpened()
boolean
jump
(InventoryLink inventoryLink) boolean
jump
(InventorySet inventorySet) boolean
jump
(InventorySet inventorySet, int page) boolean
jump
(SubInventory subInventory) boolean
jump
(SubInventory subInventory, int page) boolean
jumpToPage
(int page) boolean
nextPage()
boolean
void
render()
protected abstract void
protected void
safePutStackToInventory
(int max, int position, org.screamingsandals.lib.item.Item stack)
-
Field Details
-
player
protected final org.screamingsandals.lib.player.PlayerWrapper player -
subInventory
-
page
protected int page -
itemInfoMap
-
itemStacksInInventory
-
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
-
jump
-
jump
-
jump
-
jump
-
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
-
renderOnPlatform
protected abstract void renderOnPlatform() -
isOpened
public abstract boolean isOpened() -
getPlayer
public org.screamingsandals.lib.player.PlayerWrapper getPlayer() -
getSubInventory
-
getPage
public int getPage() -
getItemInfoMap
-
getItemStacksInInventory
-
getAnimations
-
getAnimator
public org.screamingsandals.lib.tasker.task.TaskerTask getAnimator() -
getNextAnimationPosition
public int getNextAnimationPosition() -
isMainEventCalled
public boolean isMainEventCalled()
-