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

8 lines
275 B
TypeScript
Raw Normal View History

2023-10-29 05:08:26 +00: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-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
}