Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NativeTileEntity

Interface providing access to native tile entities - chests, hoppers, furnaces, smelters, etc. See full lists of supported native tile entities in the Native.TileEntityType enum

Hierarchy

  • NativeTileEntity

Index

Methods

getCompoundTag

getSize

  • getSize(): number

getSlot

getType

  • getType(): number

setCompoundTag

setSlot

  • setSlot(slot: number, id: number, count: number, data: number, extra?: ItemExtraData): void
  • setSlot(slot: number, item: ItemInstance): void
  • Sets the contents of a native tile entity's slot

    Parameters

    • slot: number

      slot number

    • id: number

      item id

    • count: number

      item count

    • data: number

      item data

    • Optional extra: ItemExtraData

      item extra data

    Returns void

  • Sets the contents of a native tile entity's slot

    Parameters

    • slot: number

      slot number

    • item: ItemInstance

      item information

    Returns void

Generated using TypeDoc