Skip to content

API reference Obsidian.API.Inventory

IItemAccessProvider interface

Something with items other code can reach from a side (see IItemAccess): implement it on a block entity to expose its items. ContainerBlockEntity implements it already.

public interface IItemAccessProvider

In Obsidian.API.

Methods

GetItemAccess(BlockFace?)

IItemAccess GetItemAccess(BlockFace? side);

The access to the items from side, the face of this block another block reaches it through (a hopper above a block reaches it through its BlockFace.Up face); or from no particular side when null, like the block's own code. Null when nothing can be reached from that side.

On this page