Item entities

This commit is contained in:
2026-09-25 16:26:45 -03:00
parent 5fb23cf404
commit a254b96f65
18 changed files with 797 additions and 94 deletions
-5
View File
@@ -53,11 +53,6 @@ export class ServerPlayer {
return this.inventory.get_item(this.selected_slot);
}
give(item: ItemStack) {
// TODO: drop what doesn't fit once items can be on the ground
this.inventory.add_item(item);
}
info(): PlayerInfo {
return { id: this.id, name: this.name, x: this.x, y: this.y, z: this.z, yaw: this.yaw, pitch: this.pitch };
}