2023-11-09 17:04:11 +00:00
|
|
|
import { IReader, IWriter } from "bufferstuff";
|
2024-10-26 14:24:38 +01:00
|
|
|
import ItemStack from "./ItemStack";
|
2023-04-11 01:53:33 +01:00
|
|
|
|
2023-10-29 05:08:26 +00:00
|
|
|
export default interface IInventory {
|
2023-11-09 17:04:11 +00:00
|
|
|
fromSave:(reader:IReader) => void,
|
|
|
|
toSave:(writer:IWriter) => void,
|
2023-04-11 01:53:33 +01:00
|
|
|
getInventoryName:() => string,
|
|
|
|
getInventorySize:() => number,
|
2023-10-29 05:08:26 +00:00
|
|
|
getSlotItemStack:(slotId:number) => ItemStack | null
|
|
|
|
setSlotItemStack:(slotId:number, itemStack:ItemStack | null) => IInventory
|
2023-04-11 01:53:33 +01:00
|
|
|
}
|