forked from BLOCKFANTASY/LOOHP-Limbo
31 lines
562 B
Java
31 lines
562 B
Java
package com.loohp.limbo.Server.Packets;
|
|
|
|
import java.io.DataInputStream;
|
|
import java.io.IOException;
|
|
|
|
import com.loohp.limbo.Utils.DataTypeIO;
|
|
|
|
public class PacketPlayInTabComplete extends PacketIn {
|
|
|
|
private int id;
|
|
private String text;
|
|
|
|
public PacketPlayInTabComplete(int id, String text) {
|
|
this.id = id;
|
|
this.text = text;
|
|
}
|
|
|
|
public PacketPlayInTabComplete(DataInputStream in) throws IOException {
|
|
this(DataTypeIO.readVarInt(in), DataTypeIO.readString(in));
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public String getText() {
|
|
return text;
|
|
}
|
|
|
|
}
|