mc-beta-server/server/items/Item.ts

16 lines
305 B
TypeScript
Raw Normal View History

2023-04-11 01:53:33 +01:00
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
}