Class Container
public sealed class Container : BaseContainer, IEnumerable<ItemStack>, IEnumerable, IBlockEntity
- Inheritance
-
Container
- Implements
- Inherited Members
Constructors
Container(InventoryType)
public Container(InventoryType type = InventoryType.Generic)
Parameters
type
InventoryType
Container(int, InventoryType)
public Container(int size, InventoryType type = InventoryType.Generic)
Parameters
size
inttype
InventoryType
Properties
BlockPosition
public Vector BlockPosition { get; set; }
Property Value
Id
public string Id { get; set; }
Property Value
IsPlayerInventory
public bool IsPlayerInventory { get; }
Property Value
Owner
public Guid Owner { get; set; }
Property Value
Methods
AddItem(ItemStack)
public override int AddItem(ItemStack item)
Parameters
item
ItemStack
Returns
FromNbt()
public void FromNbt()
ToNbt()
public void ToNbt()