11 lines
No EOL
389 B
TypeScript
11 lines
No EOL
389 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
|
|
} |