Class InventoryRenderer
java.lang.Object
org.screamingsandals.simpleinventories.render.InventoryRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.screamingsandals.lib.tasker.task.TaskerTaskprotected final Map<Integer,PlayerItemInfo> protected booleanprotected intprotected intprotected final org.screamingsandals.lib.player.PlayerWrapperprotected SubInventory -
Constructor Summary
ConstructorsConstructorDescriptionInventoryRenderer(org.screamingsandals.lib.player.PlayerWrapper player, SubInventory subInventory, int page) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()voidclose()protected voidorg.screamingsandals.lib.tasker.task.TaskerTaskintintgetPage()org.screamingsandals.lib.player.PlayerWrapperprotected net.kyori.adventure.text.ComponentgetTitle()booleanprotected booleanisOnThisPage(GenericItemInfo item) abstract booleanisOpened()booleanjump(InventoryLink inventoryLink) booleanjump(InventorySet inventorySet) booleanjump(InventorySet inventorySet, int page) booleanjump(SubInventory subInventory) booleanjump(SubInventory subInventory, int page) booleanjumpToPage(int page) booleannextPage()booleanvoidrender()protected abstract voidprotected voidsafePutStackToInventory(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()
-