Interface NativeTileEntity

Interface providing access to native tile entities such as chests, hoppers, furnaces, smelters, etc. See full list of supported native tile entities in the ETileEntityType enum.

interface NativeTileEntity {
    getCompoundTag(): CompoundTag;
    getSize(): number;
    getSlot(slot: number): ItemInstance;
    getType(): number;
    setCompoundTag(tag: CompoundTag): void;
    setSlot(slot: number, id: number, count: number, data: number, extra?: ItemExtraData): void;
    setSlot(slot: number, item: ItemInstance): void;
}

Methods

  • 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

    • Optionalextra: ItemExtraData

      item extra data

    Returns void

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

    Parameters

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.