コード例 #1
0
  @Override
  public void a(PacketDataSerializer packetdataserializer)
      throws IOException { // CraftBukkit - added throws
    a = packetdataserializer.a();
    UUID uuid = UUID.fromString(packetdataserializer.c(36));

    b = new GameProfile(uuid, packetdataserializer.c(16));
    int i = packetdataserializer.a();

    for (int j = 0; j < i; ++j) {
      String s = packetdataserializer.c(32767);
      String s1 = packetdataserializer.c(32767);
      String s2 = packetdataserializer.c(32767);

      b.getProperties().put(s, new Property(s, s1, s2));
    }

    c = packetdataserializer.readInt();
    d = packetdataserializer.readInt();
    e = packetdataserializer.readInt();
    f = packetdataserializer.readByte();
    g = packetdataserializer.readByte();
    h = packetdataserializer.readShort();
    j = DataWatcher.b(packetdataserializer);
  }
コード例 #2
0
 public void a(PacketDataSerializer var1) throws IOException {
   this.a = var1.c(40);
   this.b =
       (PacketPlayInResourcePackStatus.EnumResourcePackStatus)
           var1.a(PacketPlayInResourcePackStatus.EnumResourcePackStatus.class);
 }
コード例 #3
0
 public void a(PacketDataSerializer packetdataserializer) {
   this.b = (ServerPing) a.fromJson(packetdataserializer.c(32767), ServerPing.class);
 }