public Packet01Login(SinZSockets socket, int version, String username) { this.socket = socket; this.version = version; this.username = username; write(); }
public Packet13PlayerPosition_Look(SinZSockets socket, double X, double Y, double Z, double stance, float yaw, float pitch, bool onGround) { this.socket = socket; this.X = X; this.Y = Y; this.Z = Z; this.stance = stance; this.yaw = yaw; this.pitch = pitch; this.onGround = onGround; write(); }
public Packet23VehicleSpawn(SinZSockets socket) { EID = socket.readInt(); type = socket.readByte(); X = socket.readInt(); Y = socket.readInt(); Z = socket.readInt(); throwerEID = socket.readInt(); if (throwerEID > 0) { sX = socket.readShort(); sY = socket.readShort(); sZ = socket.readShort(); } }
static void Main(string[] args) { String username = "******"; String address = "localhost"; String sessionID = ""; int port = 25565; TcpClient clientsocket = new TcpClient(address, port); NetworkStream stream = clientsocket.GetStream(); SinZSockets socket = new SinZSockets(stream); SocketThread socketClass = new SocketThread(); Thread socketThread = new Thread(() => socketClass.init(username, sessionID, address, port, socket)); socketThread.Start(); }
public void init(String username, String sessionID, String address, int port, SinZSockets socket) { this.username = username; this.sessionID = sessionID; this.address = address; this.port = port; this.socket = socket; String handshakeMessage = username + ";" + address + ":" + port; Packet02Handshake handshake = new Packet02Handshake(socket, handshakeMessage); Console.Out.WriteLine("Send handshake"); while (finished != true) { loop(); Thread.Sleep(10); } socket.stream.Close(); Console.In.ReadLine(); }
public Packet201PlayerList(SinZSockets socket) { this.socket = socket; read(); }
public Packet40Metadata(SinZSockets socket) { this.socket = socket; read(); }
public Packet03Chat(SinZSockets socket, String message) { this.socket = socket; this.message = message; write(); }
public Packet103Slot(SinZSockets socket) { this.socket = socket; read(); }
public Packet03Chat(SinZSockets socket) { this.socket = socket; read(); }
public Packet00KeepAlive(SinZSockets socket) { this.socket = socket; read(); }
public Packet54TileEntity(SinZSockets socket) { this.socket = socket; read(); }
public Packet33EntityLookandMove(SinZSockets socket) { this.socket = socket; read(); }
public Packet70GameState(SinZSockets socket) { this.socket = socket; read(); }
public Slot(SinZSockets socket) { this.socket = socket; read(); }
public Packet04Time(SinZSockets socket) { this.socket = socket; read(); }
public Packet50PreChunk(SinZSockets socket) { this.socket = socket; read(); }
public Packet35EntityHeadLook(SinZSockets socket) { this.socket = socket; read(); }
public Packet32EntityLook(SinZSockets socket) { this.socket = socket; read(); }
public Packet255Kick(SinZSockets socket) { this.socket = socket; read(); }
public Packet05EntityEquipment(SinZSockets socket) { this.socket = socket; read(); }
public Packet01Login(SinZSockets socket) { this.socket = socket; read(); }
public Packet21DroppedItem(SinZSockets socket) { this.socket = socket; read(); }
public Packet06SpawnPosition(SinZSockets socket) { this.socket = socket; read(); }
public Packet25Painting(SinZSockets socket) { this.socket = socket; read(); }
public Metadata(SinZSockets socket) { this.socket = socket; }
public Packet255Kick(SinZSockets socket, String reason) { this.socket = socket; this.reason = reason; write(); }
public Packet61SoundEffect(SinZSockets socket) { this.socket = socket; read(); }
public Packet00KeepAlive(SinZSockets socket, int ID) { this.socket = socket; this.ID = ID; write(); }
public Packet34EntityTeleport(SinZSockets socket) { this.socket = socket; read(); }