mc-beta-server/server/inventories/IInventory.ts

11 lines
389 B
TypeScript
Raw Normal View History

2023-11-09 17:04:11 +00:00
import { IReader, IWriter } from "bufferstuff";
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
}