Example #1
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x00);
     wSock.writeVarInt(ProtocolVersion);
     wSock.writeString(ServerAddress);
     wSock.writeShort(ServerPort);
     wSock.writeVarInt(NextState);
     wSock.Purge();
 }
Example #2
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x14);
     wSock.writeString(Text);
     wSock.writeBool(HasPosition);
     wSock.writeLong(LookedAtBlock.Pack());
     wSock.Purge();
 }
Example #3
0
        public void Write(Wrapped wSock) {
            wSock.writeVarInt(0x0C);
            wSock.writeVarInt(EntityID);
            wSock.writeString(PlayerUUID);
            wSock.writeString(PlayerName);
            wSock.writeVarInt(Data.Length);

            for (int i = 0; i < Data.Length; i++) {
                wSock.writeString(Data[i].Name);
                wSock.writeString(Data[i].Value);
                wSock.writeString(Data[i].Signature);
            }

            wSock.writeInt(X);
            wSock.writeInt(Y);
            wSock.writeInt(Z);
            wSock.writeSByte(Yaw);
            wSock.writeSByte(Pitch);
            wSock.writeShort(CurrentItem);
            WrappedExtension.WriteEntityMetadata(wSock, Metadata);
            wSock.Purge();
        }
Example #4
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x00);
     wSock.writeString(JSONData);
     wSock.Purge();
 }
Example #5
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x17);
     wSock.writeString(Channel);
     wSock.writeShort(Length);
     wSock.Send(Data);
     wSock.Purge();
 }
Example #6
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x14);
     wSock.writeString(Text);
     wSock.Purge();
 }
Example #7
0
        public void Write(Wrapped wSock) {
            wSock.writeVarInt(0x3E);
            wSock.writeString(TeamName);
            wSock.writeSByte(Mode);
            wSock.writeString(TeamDisplayName);
            wSock.writeString(TeamPrefix);
            wSock.writeString(TeamSuffix);
            wSock.writeSByte(Friendlyfire);
            wSock.writeShort(Playercount);

            for (int x = 0; x < Playercount - 1; x++)
                wSock.writeString(Players[x]);

            wSock.Purge();
        }
Example #8
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x02);
     wSock.writeString(UUID);
     wSock.writeString(Username);
     wSock.Purge();
 }
Example #9
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x29);
     wSock.writeString(SoundName);
     wSock.writeInt(EffectpositionX);
     wSock.writeInt(EffectpositionY);
     wSock.writeInt(EffectpositionZ);
     wSock.writeFloat(Volume);
     wSock.writeByte(Pitch);
     wSock.Purge();
 }
Example #10
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x01);
     wSock.writeString(ServerID);
     wSock.writeShort(PublicLength);
     wSock.Send(PublicKey);
     wSock.writeShort(VerifyLength);
     wSock.Send(VerifyToken);
     wSock.Purge();
 }
Example #11
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x10);
     wSock.writeVarInt(EntityID);
     wSock.writeString(Title);
     wSock.writeInt(X);
     wSock.writeInt(Y);
     wSock.writeInt(Z);
     wSock.writeInt(Direction);
     wSock.Purge();
 }
Example #12
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x02);
     wSock.writeString(JSONData);
     wSock.writeSByte(Position);
     wSock.Purge();
 }
Example #13
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x19);
     wSock.writeString(Hash);
     wSock.writeVarInt(Result);
     wSock.Purge();
 }
Example #14
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x15);
     wSock.writeString(Locale);
     wSock.writeSByte(ViewDistance);
     wSock.writeSByte(ChatMode);
     wSock.writeBool(ChatColors);
     wSock.writeByte(DisplayedSkinParts);
     wSock.Purge();
 }
Example #15
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x3C);
     wSock.writeString(ItemName);
     wSock.writeSByte(Update);
     wSock.writeString(ScoreName);
     wSock.writeInt(Value);
     wSock.Purge();
 }
Example #16
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x2A);
     wSock.writeString(Particlename);
     wSock.writeFloat(X);
     wSock.writeFloat(Y);
     wSock.writeFloat(Z);
     wSock.writeFloat(OffsetX);
     wSock.writeFloat(OffsetY);
     wSock.writeFloat(OffsetZ);
     wSock.writeFloat(Particledata);
     wSock.writeInt(Numberofparticles);
     wSock.Purge();
 }
Example #17
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x3D);
     wSock.writeSByte(Position);
     wSock.writeString(ScoreName);
     wSock.Purge();
 }
Example #18
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x2D);
     wSock.writeByte(Windowid);
     wSock.writeByte(InventoryType);
     wSock.writeString(Windowtitle);
     wSock.writeByte(NumberofSlots);
     wSock.writeBool(Useprovidedwindowtitle);
     wSock.writeInt(EntityID);
     wSock.Purge();
 }
Example #19
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x40);
     wSock.writeString(Reason);
     wSock.Purge();
 }
Example #20
0
        public void Write(Wrapped wSock) {
            wSock.writeVarInt(0x37);
            wSock.writeVarInt(Count);

            foreach (string s in Entries.Keys) {
                wSock.writeString(s);
                wSock.writeVarInt(Entries[s]);
            }

            wSock.Purge();
        }
Example #21
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x12);
     wSock.writeInt(X);
     wSock.writeShort(Y);
     wSock.writeInt(Z);
     wSock.writeString(Line1);
     wSock.writeString(Line2);
     wSock.writeString(Line3);
     wSock.writeString(Line4);
     wSock.Purge();
 }
Example #22
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x38);
     wSock.writeString(Playername);
     wSock.writeBool(Online);
     wSock.writeShort(Ping);
     wSock.Purge();
 }
Example #23
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x15);
     wSock.writeString(Locale);
     wSock.writeSByte(Viewdistance);
     wSock.writeSByte(Chatflags);
     wSock.writeBool(Chatcolours);
     wSock.writeSByte(Difficulty);
     wSock.writeBool(ShowCape);
     wSock.Purge();
 }
Example #24
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x01);
     wSock.writeString(Message);
     wSock.Purge();
 }
Example #25
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x01);
     wSock.writeInt(EntityID);
     wSock.writeByte(Gamemode);
     wSock.writeSByte(Dimension);
     wSock.writeByte(Difficulty);
     wSock.writeByte(MaxPlayers);
     wSock.writeString(LevelType);
     wSock.Purge();
 }
Example #26
0
        public void Write(Wrapped wSock) {
            wSock.writeVarInt(0x3A);
            wSock.writeVarInt(Count);

            for (int i = 0; i < Count; i++)
                wSock.writeString(Matches[i]);

            wSock.Purge();
        }
Example #27
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x07);
     wSock.writeInt(Dimension);
     wSock.writeByte(Difficulty);
     wSock.writeByte(Gamemode);
     wSock.writeString(LevelType);
     wSock.Purge();
 }
Example #28
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x3B);
     wSock.writeString(Objectivename);
     wSock.writeString(Objectivevalue);
     wSock.writeSByte(Create);
     wSock.Purge();
 }
 public static void WritePropertyData(Wrapped wSock, PropertyData Data) {
     wSock.writeString(Data.Key);
     wSock.writeDouble(Data.Value);
     wSock.writeShort(Data.ListLength);
     
     for (int x = 0; x < Data.ListLength; x++)
         WriteModifierData(wSock, Data.Modifiers[x]);
 }
Example #30
0
 public void Write(Wrapped wSock) {
     wSock.writeVarInt(0x12);
     wSock.writeLong(Location.Pack());
     wSock.writeString(Line1);
     wSock.writeString(Line2);
     wSock.writeString(Line3);
     wSock.writeString(Line4);
     wSock.Purge();
 }