protected override void OnRead(Server.Core.Stream.ByteBuffer buffer) { _x = buffer.ReadInt(); _y = (byte)buffer.ReadByte(); _z = buffer.ReadInt(); _direction = (byte)buffer.ReadByte(); if (_direction == 0) { _y--; } else if (_direction == 1) { _y++; } else if (_direction == 2) { _z--; } else if (_direction == 3) { _z++; } else if (_direction == 4) { _x--; } else if (_direction == 5) { _x++; } _blockID = buffer.ReadShort(); if (_blockID < 0) { return; } MinecraftServer.Core.Network.Server.ViewModel.Warning("Block Placement Coord(" + _x + ", " + _y + ", " + _z + ")"); _itemCount = (byte)buffer.ReadByte(); _itemDamage = buffer.ReadShort(); _NBTLength = buffer.ReadShort(); }
protected override void OnRead(Server.Core.Stream.ByteBuffer stream) { stream.ReadShort(); }
protected override void OnRead(Server.Core.Stream.ByteBuffer stream) { Slot = stream.ReadShort(); ClickedItem.Read(stream); }