C# Class Aura.Channel.World.Inventory.InventoryPocketStack

Pocket that holds an infinite number of items.
Inheritance: InventoryPocket
Exibir arquivo Open project: aura-project/aura

Public Methods

Method Description
Add ( Item item ) : bool
AddUnsafe ( Item item ) : void
CountItem ( bool>.Func predicate ) : int
CountItem ( int itemId ) : int
CountItem ( string tag ) : int
FillStacks ( Item item, List &changed ) : bool
GetItem ( bool>.Func predicate, StartAt startAt ) : Item
GetItem ( long id ) : Item
GetItemAt ( int x, int y ) : Item
GetItems ( bool>.Func predicate, StartAt startAt ) : List
Has ( Item item ) : bool
HasSpace ( Item item ) : bool
InventoryPocketStack ( Pocket pocket ) : System
Remove ( Item item ) : bool
Remove ( int itemId, int amount, List &changed ) : int
TryAdd ( Item item, byte targetX, byte targetY, Item &colliding ) : bool

Method Details

Add() public method

public Add ( Item item ) : bool
item Item
return bool

AddUnsafe() public method

public AddUnsafe ( Item item ) : void
item Item
return void

CountItem() public method

public CountItem ( bool>.Func predicate ) : int
predicate bool>.Func
return int

CountItem() public method

public CountItem ( int itemId ) : int
itemId int
return int

CountItem() public method

public CountItem ( string tag ) : int
tag string
return int

FillStacks() public method

public FillStacks ( Item item, List &changed ) : bool
item Item
changed List
return bool

GetItem() public method

public GetItem ( bool>.Func predicate, StartAt startAt ) : Item
predicate bool>.Func
startAt StartAt
return Item

GetItem() public method

public GetItem ( long id ) : Item
id long
return Item

GetItemAt() public method

public GetItemAt ( int x, int y ) : Item
x int
y int
return Item

GetItems() public method

public GetItems ( bool>.Func predicate, StartAt startAt ) : List
predicate bool>.Func
startAt StartAt
return List

Has() public method

public Has ( Item item ) : bool
item Item
return bool

HasSpace() public method

public HasSpace ( Item item ) : bool
item Item
return bool

InventoryPocketStack() public method

public InventoryPocketStack ( Pocket pocket ) : System
pocket Pocket
return System

Remove() public method

public Remove ( Item item ) : bool
item Item
return bool

Remove() public method

public Remove ( int itemId, int amount, List &changed ) : int
itemId int
amount int
changed List
return int

TryAdd() public method

public TryAdd ( Item item, byte targetX, byte targetY, Item &colliding ) : bool
item Item
targetX byte
targetY byte
colliding Item
return bool