mc-beta-server/server/inventories/IInventory.ts
2023-11-09 17:04:11 +00:00

11 lines
No EOL
393 B
TypeScript

import { IReader, IWriter } from "bufferstuff";
import { ItemStack } from "./ItemStack";
export default interface IInventory {
fromSave:(reader:IReader) => void,
toSave:(writer:IWriter) => void,
getInventoryName:() => string,
getInventorySize:() => number,
getSlotItemStack:(slotId:number) => ItemStack | null
setSlotItemStack:(slotId:number, itemStack:ItemStack | null) => IInventory
}