mc-beta-server/server/items/Item.ts
2023-04-11 01:53:33 +01:00

16 lines
No EOL
305 B
TypeScript

export class Item {
public maxStackSize:number;
public shiftedItemID:number;
public constructor(itemID:number) {
this.shiftedItemID = 256 + itemID;
this.maxStackSize = 64;
}
public setMaxStackSize(stackSize:number) {
this.maxStackSize = stackSize;
return this;
}
// Define statics here
}