public final class ViewContainerImpl extends java.lang.Object implements ViewContainerRich
| Constructor and Description |
|---|
ViewContainerImpl(@NotNull InventoryHolderFrame inventoryHolder,
@NotNull InvTypeRich type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(int slot,
@NotNull org.bukkit.inventory.ItemStack item) |
@Nullable net.infumia.frame.view.ViewContainer |
at(int slot) |
int |
columnsCount() |
int |
firstSlot() |
boolean |
hasItem(int slot) |
@NotNull InventoryHolderFrame |
inventoryHolder() |
boolean |
isPlayerInventory() |
int |
lastSlot() |
void |
open(@NotNull net.infumia.frame.viewer.Viewer viewer) |
void |
removeItem(int slot) |
int |
rowsCount() |
int |
size() |
int |
slotsCount() |
@NotNull net.infumia.frame.type.InvType |
type() |
@NotNull InvTypeRich |
typeRich() |
public ViewContainerImpl(@NotNull
@NotNull InventoryHolderFrame inventoryHolder,
@NotNull
@NotNull InvTypeRich type)
@NotNull public @NotNull InventoryHolderFrame inventoryHolder()
inventoryHolder in interface net.infumia.frame.view.ViewContainerinventoryHolder in interface ViewContainerRich@NotNull public @NotNull net.infumia.frame.type.InvType type()
type in interface net.infumia.frame.view.ViewContainerpublic int size()
size in interface net.infumia.frame.view.ViewContainerpublic int slotsCount()
slotsCount in interface net.infumia.frame.view.ViewContainerpublic int rowsCount()
rowsCount in interface net.infumia.frame.view.ViewContainerpublic int columnsCount()
columnsCount in interface net.infumia.frame.view.ViewContainerpublic int firstSlot()
firstSlot in interface net.infumia.frame.view.ViewContainerpublic int lastSlot()
lastSlot in interface net.infumia.frame.view.ViewContainerpublic boolean hasItem(int slot)
hasItem in interface net.infumia.frame.view.ViewContainerpublic void removeItem(int slot)
removeItem in interface net.infumia.frame.view.ViewContainerpublic void addItem(int slot,
@NotNull
@NotNull org.bukkit.inventory.ItemStack item)
addItem in interface net.infumia.frame.view.ViewContainerpublic void open(@NotNull
@NotNull net.infumia.frame.viewer.Viewer viewer)
open in interface net.infumia.frame.view.ViewContainerpublic boolean isPlayerInventory()
isPlayerInventory in interface net.infumia.frame.view.ViewContainer@Nullable public @Nullable net.infumia.frame.view.ViewContainer at(int slot)
at in interface net.infumia.frame.view.ViewContainer@NotNull public @NotNull InvTypeRich typeRich()
typeRich in interface ViewContainerRich