Exemple #1
0
 public void Spawn()
 {
     CXMineServer.Server.Spawn(this);
     Spawned = true;
     CurrentChunk = null;
     X = CXMineServer.Server.World.SpawnX + 0.5;
     Y = CXMineServer.Server.World.SpawnY + 5;
     Z = CXMineServer.Server.World.SpawnZ + 0.5;
     Yaw = 0.0F;
     Pitch = 0.0F;
     CXMineServer.Log("Creating Inventory");
     inventory = new Inventory();
     CXMineServer.Log("Inventory Created");
     loadPlayerData();
     CXMineServer.Log("Inventory Loaded");
     Update();
     _State.SpawnPosition((int)X, (int)Y, (int)Z);
     _State.PlayerPositionLook(X, 0.0, Y, Z, Yaw, Pitch, 1);
 }
Exemple #2
0
 public Slot(Inventory inv, short count = 0, short id = -1, short uses = 0, int position = -1)
 {
     _Inventory = inv;
     this.count = count;
     Id = id;
     this.uses = uses;
     Position = position;
 }