VoidingVirtualInventory

class VoidingVirtualInventory(size: Int) : VirtualInventory

A VirtualInventory implementation that does not store any items, but voids them.

Constructors

Link copied to clipboard
constructor(size: Int)

Properties

Link copied to clipboard
Link copied to clipboard
@Nullable
@get:Nullable
val items: @NotNull Array<@Nullable ItemStack?>
Link copied to clipboard
var maxStackSizes: @NotNull IntArray
Link copied to clipboard
@Nullable
@get:Nullable
var resizeHandlers: @Nullable MutableList<@NotNull BiConsumer<@NotNull Int, @NotNull Int>>?
Link copied to clipboard
val size: Int
Link copied to clipboard
@NotNull
@get:NotNull
val uuid: @NotNull UUID

Functions

Link copied to clipboard
fun VirtualInventory.addAll(reason: UpdateReason?, items: List<ItemStack>)

Adds a List of ItemStacks to a VirtualInventory.

Link copied to clipboard
open fun addItem(@Nullable p0: @Nullable UpdateReason?, @NotNull p1: @NotNull ItemStack): Int
Link copied to clipboard
open fun addItemAmount(@Nullable p0: @Nullable UpdateReason?, p1: Int, p2: Int): Int
Link copied to clipboard
open fun addResizeHandler(@NotNull p0: @NotNull BiConsumer<@NotNull Int, @NotNull Int>)
Link copied to clipboard
open fun addWindow(p0: AbstractWindow)
Link copied to clipboard
open fun callPostUpdateEvent(@Nullable p0: @Nullable UpdateReason?, p1: Int, @Nullable p2: @Nullable ItemStack?, @Nullable p3: @Nullable ItemStack?)
Link copied to clipboard
open fun callPreUpdateEvent(@Nullable p0: @Nullable UpdateReason?, p1: Int, @Nullable p2: @Nullable ItemStack?, @Nullable p3: @Nullable ItemStack?): ItemPreUpdateEvent
Link copied to clipboard
open fun canHold(@NotNull p0: @NotNull MutableList<@NotNull ItemStack>): Boolean
open fun canHold(@NotNull p0: @NotNull ItemStack, @NotNull vararg p1: @NotNull ItemStack): Boolean
Link copied to clipboard
open fun collectSimilar(@Nullable p0: @Nullable UpdateReason?, @NotNull p1: @NotNull ItemStack): Int
open fun collectSimilar(@Nullable p0: @Nullable UpdateReason?, @NotNull p1: @NotNull ItemStack, p2: Int): Int
Link copied to clipboard
open operator fun contains(p0: Predicate<ItemStack>): Boolean
Link copied to clipboard
open fun containsSimilar(p0: ItemStack): Boolean
Link copied to clipboard
open fun count(p0: Predicate<ItemStack>): Int
Link copied to clipboard
open fun countSimilar(p0: ItemStack): Int
Link copied to clipboard
open fun forceSetItem(@Nullable p0: @Nullable UpdateReason?, p1: Int, @Nullable p2: @Nullable ItemStack?): Boolean
Link copied to clipboard
@Nullable
open override fun getItem(p0: Int): @Nullable ItemStack?
Link copied to clipboard
open fun getItemAmount(p0: Int): Int
Link copied to clipboard
open fun getMaxSlotStackSize(p0: Int, p1: Int): Int
open fun getMaxSlotStackSize(p0: Int, @Nullable p1: @Nullable ItemStack?): Int
open override fun getMaxSlotStackSize(p0: Int): Int
Link copied to clipboard
open fun getMaxStackSize(p0: Int): Int
open fun getMaxStackSize(p0: Int, p1: Int): Int
open fun getMaxStackSize(p0: Int, @Nullable p1: @Nullable ItemStack?): Int
Link copied to clipboard
@Nullable
open fun getPostUpdateHandler(): @Nullable Consumer<@NotNull ItemPostUpdateEvent>?
Link copied to clipboard
@Nullable
open fun getPreUpdateHandler(): @Nullable Consumer<@NotNull ItemPreUpdateEvent>?
Link copied to clipboard
open override fun getUnsafeItem(p0: Int): ItemStack?
Link copied to clipboard
@Nullable
open override fun getUnsafeItems(): @NotNull Array<@Nullable ItemStack?>
Link copied to clipboard
@NotNull
open fun getWindows(): @NotNull MutableSet<@NotNull Window>
Link copied to clipboard
open fun hasEmptySlot(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun hasItem(p0: Int): Boolean
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun isFull(): Boolean
Link copied to clipboard
open fun isSynced(p0: Int, p1: ItemStack): Boolean
Link copied to clipboard
open fun modifyItem(@Nullable p0: @Nullable UpdateReason?, p1: Int, @NotNull p2: @NotNull Consumer<@Nullable ItemStack?>): Boolean
Link copied to clipboard
open fun notifyWindows()
Link copied to clipboard
open fun putItem(@Nullable p0: @Nullable UpdateReason?, p1: Int, @NotNull p2: @NotNull ItemStack): Int
Link copied to clipboard
open fun removeFirst(@Nullable p0: @Nullable UpdateReason?, p1: Int, @NotNull p2: @NotNull Predicate<@NotNull ItemStack>): Int
Link copied to clipboard
open fun removeFirstSimilar(@Nullable p0: @Nullable UpdateReason?, p1: Int, @NotNull p2: @NotNull ItemStack): Int
Link copied to clipboard
open fun removeIf(@Nullable p0: @Nullable UpdateReason?, @NotNull p1: @NotNull Predicate<@NotNull ItemStack>): Int
Link copied to clipboard
open fun removeResizeHandler(@NotNull p0: @NotNull BiConsumer<@NotNull Int, @NotNull Int>)
Link copied to clipboard
open fun removeSimilar(@Nullable p0: @Nullable UpdateReason?, @NotNull p1: @NotNull ItemStack): Int
Link copied to clipboard
open fun removeWindow(p0: AbstractWindow)
Link copied to clipboard
open fun replaceItem(@Nullable p0: @Nullable UpdateReason?, p1: Int, @NotNull p2: @NotNull Function<@Nullable ItemStack?, @Nullable ItemStack?>): Boolean
Link copied to clipboard
open fun resize(p0: Int)
Link copied to clipboard
open fun serialize(): ByteArray
open fun serialize(p0: OutputStream)
Link copied to clipboard
open fun setItem(@Nullable p0: @Nullable UpdateReason?, p1: Int, @Nullable p2: @Nullable ItemStack?): Boolean
Link copied to clipboard
open fun setItemAmount(@Nullable p0: @Nullable UpdateReason?, p1: Int, p2: Int): Int
Link copied to clipboard
open fun setItemSilently(p0: Int, @Nullable p1: @Nullable ItemStack?)
Link copied to clipboard
open fun setMaxStackSize(p0: Int, p1: Int)
Link copied to clipboard
open fun setPostUpdateHandler(@Nullable p0: @Nullable Consumer<@NotNull ItemPostUpdateEvent>?)
Link copied to clipboard
open fun setPreUpdateHandler(@Nullable p0: @Nullable Consumer<@NotNull ItemPreUpdateEvent>?)
Link copied to clipboard
open fun simulateAdd(@NotNull p0: @NotNull MutableList<@NotNull ItemStack>): IntArray
open fun simulateAdd(@NotNull p0: @NotNull ItemStack, @NotNull vararg p1: @NotNull ItemStack): IntArray
Link copied to clipboard
open fun simulateMultiAdd(@NotNull p0: @NotNull MutableList<@NotNull ItemStack>): IntArray
Link copied to clipboard
open fun simulateSingleAdd(@NotNull p0: @NotNull ItemStack): Int