Class PacketTranslator


  • public final class PacketTranslator
    extends java.lang.Object
    • Method Detail

      • translateC2S

        public static java.util.List<Packet> translateC2S​(Packet packet,
                                                          int dest)
      • translateC2S

        public static java.util.List<Packet> translateC2S​(java.util.List<Packet> packets,
                                                          int dest)
      • translateS2C

        public static java.util.List<Packet> translateS2C​(Packet packet,
                                                          int from)
      • translateS2C

        public static java.util.List<Packet> translateS2C​(java.util.List<Packet> packets,
                                                          int from)
      • getNewPacket

        public static Packet getNewPacket​(int protocol,
                                          int packetId)
      • isItemPresent

        public static boolean isItemPresent​(int protocol,
                                            int itemId)
      • getActualProtocolVersion

        public static int getActualProtocolVersion​(int protocol)