Пример #1
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            Yaw = reader.ReadSByte();
            Pitch = reader.ReadSByte();
            OnGround = reader.ReadBoolean();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            EffectID = (EffectID) reader.ReadSByte();
            Amplifier = reader.ReadSByte();
            Duration = reader.ReadVarInt();
            HideParticles = reader.ReadBoolean();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            Vector3 = Vector3.FromReaderIntFixedPoint(reader);
            Yaw = reader.ReadSByte();
            Pitch = reader.ReadSByte();
            OnGround = reader.ReadBoolean();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            PlayerUUID = reader.ReadBigInteger();
            Vector3 = Vector3.FromReaderIntFixedPoint(reader);
            Yaw = reader.ReadSByte();
            Pitch = reader.ReadSByte();
            CurrentItem = reader.ReadShort();
            EntityMetadata = EntityMetadataList.FromReader(reader);

            return this;
        }
Пример #5
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            Type = (Mobs) reader.ReadByte();
            Vector3 = Vector3.FromReaderIntFixedPoint(reader);
            Yaw = reader.ReadSByte();
            Pitch = reader.ReadSByte();
            HeadPitch = reader.ReadSByte();
            VelocityX = reader.ReadShort();
            VelocityY = reader.ReadShort();
            VelocityZ = reader.ReadShort();
            EntityMetadata = EntityMetadataList.FromReader(reader);

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Position = (ScoreboardPosition) reader.ReadSByte();
            ScoreName = reader.ReadString();

            return this;
        }
Пример #7
0
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            PlayerID = reader.ReadSByte();
            Message = reader.ReadString();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            EffectID = (EffectID) reader.ReadSByte();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            HeadYaw = reader.ReadSByte();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadInt();
            Status = (EntityStatus) reader.ReadSByte();

            return this;
        }
Пример #11
0
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            PlayerID = reader.ReadSByte();
            Yaw      = reader.ReadByte();
            Pitch    = reader.ReadByte();

            return(this);
        }
Пример #12
0
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            PlayerID = reader.ReadSByte();
            Yaw = reader.ReadByte();
            Pitch = reader.ReadByte();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Flags = reader.ReadSByte();
            FlyingSpeed = reader.ReadFloat();
            WalkingSpeed = reader.ReadFloat();

            return this;
        }
Пример #14
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID     = reader.ReadVarInt();
            Location     = Position.FromReaderLong(reader);
            DestroyStage = reader.ReadSByte();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            Type = reader.ReadSByte();
            Vector3 = Vector3.FromReaderIntFixedPoint(reader);

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Flags        = reader.ReadSByte();
            FlyingSpeed  = reader.ReadFloat();
            WalkingSpeed = reader.ReadFloat();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            Location = Position.FromReaderLong(reader);
            DestroyStage = reader.ReadSByte();

            return this;
        }
Пример #18
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            WindowId = reader.ReadSByte();
            Slot     = reader.ReadShort();
            SlotData = ItemStack.FromReader(reader);

            return(this);
        }
Пример #19
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadVarInt();
            Type     = reader.ReadSByte();
            Vector3  = Vector3.FromReaderIntFixedPoint(reader);

            return(this);
        }
Пример #20
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            WindowId = reader.ReadSByte();
            Slot = reader.ReadShort();
            SlotData = ItemStack.FromReader(reader);

            return this;
        }
Пример #21
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ItemDamage = reader.ReadVarInt();
            Scale      = reader.ReadSByte();
            IconList   = IconList.FromReader(reader);
            Columns    = reader.ReadSByte();

            if (Columns > 0)
            {
                Rows = reader.ReadSByte();
                X    = reader.ReadSByte();
                Y    = reader.ReadSByte();
                var dataLength = reader.ReadShort();
                Data = reader.ReadByteArray(dataLength);
            }

            return(this);
        }
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            PlayerID    = reader.ReadSByte();
            Coordinates = Position.FromReaderShort(reader);
            Yaw         = reader.ReadByte();
            Pitch       = reader.ReadByte();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Vector3 = Vector3.FromReaderDouble(reader);
            Yaw = reader.ReadFloat();
            Pitch = reader.ReadFloat();
            Flags = (PlayerPositionAndLookFlags) reader.ReadSByte();

            return this;
        }
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            PlayerID = reader.ReadSByte();
            Coordinates = Position.FromReaderShort(reader);
            Yaw = reader.ReadByte();
            Pitch = reader.ReadByte();

            return this;
        }
Пример #25
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ItemDamage = reader.ReadVarInt();
            Scale = reader.ReadSByte();
            IconList = IconList.FromReader(reader);
            Columns = reader.ReadSByte();

            if (Columns > 0)
            {
                Rows = reader.ReadSByte();
                X = reader.ReadSByte();
                Y = reader.ReadSByte();
                var dataLength = reader.ReadShort();
                Data = reader.ReadByteArray(dataLength);
            }

            return this;
        }
Пример #26
0
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            PlayerID       = reader.ReadSByte();
            ChangeLocation = Position.FromReaderSByte(reader);
            Yaw            = reader.ReadByte();
            Pitch          = reader.ReadByte();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ObjectiveName = reader.ReadString();
            Mode = reader.ReadSByte();
            ObjectiveValue = reader.ReadString();
            Type = reader.ReadString();

            return this;
        }
Пример #28
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ObjectiveName  = reader.ReadString();
            Mode           = reader.ReadSByte();
            ObjectiveValue = reader.ReadString();
            Type           = reader.ReadString();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Vector3 = Vector3.FromReaderDouble(reader);
            Yaw     = reader.ReadFloat();
            Pitch   = reader.ReadFloat();
            Flags   = (PlayerPositionAndLookFlags)reader.ReadSByte();

            return(this);
        }
Пример #30
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID = reader.ReadInt();
            GameMode = (GameMode) reader.ReadByte();
            Dimension = (Dimension) reader.ReadSByte();
            Difficulty = (Difficulty) reader.ReadByte();
            MaxPlayers = reader.ReadByte();
            LevelType = reader.ReadString();
            ReducedDebugInfo = reader.ReadBoolean();

            return this;
        }
Пример #31
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            EntityID         = reader.ReadInt();
            GameMode         = (GameMode)reader.ReadByte();
            Dimension        = (Dimension)reader.ReadSByte();
            Difficulty       = (Difficulty)reader.ReadByte();
            MaxPlayers       = reader.ReadByte();
            LevelType        = reader.ReadString();
            ReducedDebugInfo = reader.ReadBoolean();

            return(this);
        }
Пример #32
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Slot = reader.ReadSByte();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Slot = reader.ReadSByte();

            return this;
        }