mc-beta-server/server/entities/Player.ts

18 lines
412 B
TypeScript
Raw Normal View History

2023-04-08 20:52:47 +01:00
import { MinecraftServer } from "../MinecraftServer";
import { World } from "../World";
import { Entity } from "./Entity";
export class Player extends Entity {
public username:string;
private server:MinecraftServer;
public constructor(server:MinecraftServer, world:World, username:string) {
super(world);
this.server = server;
this.username = username;
this.x = 8;
this.y = 64;
this.z = 8;
}
}