Package dev.twilite.game.common
Class ItemContainers
java.lang.Object
dev.twilite.game.common.ItemContainers
Utilities for reading item-container memory and turning it into item views.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<dev.twilite.game.internal.memory.RSInventory> memory(int id) Returns inventory memory by inventory id.static ItemViewview(Supplier<Optional<dev.twilite.game.internal.memory.RSInventory>> inventory, Function<Item, Optional<IfComponent>> componentFunction)
-
Constructor Details
-
ItemContainers
public ItemContainers()
-
-
Method Details
-
view
-
memory
Returns inventory memory by inventory id.- Parameters:
id- inventory id, usually fromInventoryId
-