Пример #1
0
 private void HandleOnBlockChanged(object sender, BlockChangedEventArgs e)
 {
     foreach (MinecraftClient client in GetClientsInWorld(e.World))
         client.SendPacket(new BlockChangePacket(e.Position, e.Value));
     ProcessSendQueue();
 }
Пример #2
0
 private void HandleOnBlockChanged(object sender, BlockChangedEventArgs e)
 {
     foreach (MinecraftClient client in EntityManager.GetClientsInWorld(e.World))
         client.SendPacket(new BlockChangePacket((int)e.Position.X, (byte)e.Position.Y, (int)e.Position.Z,
             e.Value.Id, e.Value.Metadata));
 }