Table of Contents

Class Container

Namespace
Obsidian.API
Assembly
Obsidian.API.dll
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 int
type InventoryType

Properties

BlockPosition

public Vector BlockPosition { get; set; }

Property Value

Vector

Id

public string Id { get; set; }

Property Value

string

IsPlayerInventory

public bool IsPlayerInventory { get; }

Property Value

bool

Owner

public Guid Owner { get; set; }

Property Value

Guid

Methods

AddItem(ItemStack)

public override int AddItem(ItemStack item)

Parameters

item ItemStack

Returns

int

FromNbt()

public void FromNbt()

ToNbt()

public void ToNbt()