SiliconGhetto Engine API
    Preparing search index...

    Function createChestAPI

    • Returns {
          get(x: number, y: number, z: number): InventorySlot[] | null;
          set(x: number, y: number, z: number, slots: InventorySlot[]): void;
      }

      • get: function
        • Read the contents of a chest at a world position.

          Parameters

          • x: number

            World X coordinate of the chest block

          • y: number

            World Y coordinate of the chest block

          • z: number

            World Z coordinate of the chest block

          Returns InventorySlot[] | null

          Array of 27 inventory slots, or null if no chest exists at that position

      • set: function
        • Set the contents of a chest at a world position.

          Parameters

          • x: number

            World X coordinate of the chest block

          • y: number

            World Y coordinate of the chest block

          • z: number

            World Z coordinate of the chest block

          • slots: InventorySlot[]

            Array of inventory slots to write (max 27)

          Returns void