Use file to handle packet id mappings

This commit is contained in:
LOOHP
2020-08-04 00:19:38 +08:00
parent 96bb492fc4
commit 212c8f2d41
26 changed files with 164 additions and 99 deletions
@@ -9,7 +9,7 @@ import java.util.stream.Collectors;
import com.loohp.limbo.Utils.DataTypeIO;
public class PacketPlayOutPositionAndLook extends Packet {
public class PacketPlayOutPositionAndLook extends PacketOut {
public enum PlayerTeleportFlags {
X((byte) 0x01),
@@ -75,6 +75,7 @@ public class PacketPlayOutPositionAndLook extends Packet {
return teleportId;
}
@Override
public byte[] getBytes() throws IOException {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();