public override void FromReader(IMinecraftDataReader reader)
 {
     Rotation = new Rotation(
         reader.ReadFloat(), 
         reader.ReadFloat(), 
         reader.ReadFloat());
 }
 public override void FromReader(IMinecraftDataReader reader)
 {
     Rotation = new Rotation(
         reader.ReadFloat(),
         reader.ReadFloat(),
         reader.ReadFloat());
 }
Exemplo n.º 3
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Yaw = reader.ReadFloat();
            Pitch = reader.ReadFloat();
            OnGround = reader.ReadBoolean();

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

            return(this);
        }
Exemplo n.º 5
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Yaw      = reader.ReadFloat();
            Pitch    = reader.ReadFloat();
            OnGround = reader.ReadBoolean();

            return(this);
        }
Exemplo n.º 6
0
 public Rotation FromReaderFloat(IMinecraftDataReader reader)
 {
     return(new Rotation(
                reader.ReadFloat(),
                reader.ReadFloat(),
                reader.ReadFloat()
                ));
 }
Exemplo n.º 7
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Health         = reader.ReadFloat();
            Food           = reader.ReadVarInt();
            FoodSaturation = reader.ReadFloat();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Sideways = reader.ReadFloat();
            Forward = reader.ReadFloat();
            Flags = (SteerVehicle) reader.ReadByte();

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

            return this;
        }
Exemplo n.º 10
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Sideways = reader.ReadFloat();
            Forward  = reader.ReadFloat();
            Flags    = (SteerVehicle)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 IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Vector3 = Vector3.FromReaderDouble(reader);
            Yaw     = reader.ReadFloat();
            Pitch   = reader.ReadFloat();
            Flags   = (PlayerPositionAndLookFlags)reader.ReadSByte();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            X = reader.ReadDouble();
            FeetY = reader.ReadDouble();
            Z = reader.ReadDouble();
            Yaw = reader.ReadFloat();
            Pitch = reader.ReadFloat();
            OnGround = reader.ReadBoolean();

            return this;
        }
Exemplo n.º 14
0
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            LevelSeed = reader.ReadInt();
            Unknown   = reader.ReadInt();
            Gamemode  = reader.ReadInt();
            EntityID  = reader.ReadInt();
            X         = reader.ReadFloat();
            Y         = reader.ReadFloat();
            Z         = reader.ReadFloat();

            return(this);
        }
Exemplo n.º 15
0
        public IPacketWithSize ReadPacket(IMinecraftDataReader reader)
        {
            LevelSeed = reader.ReadInt();
            Unknown = reader.ReadInt();
            Gamemode = reader.ReadInt();
            EntityID = reader.ReadInt();
            X = reader.ReadFloat();
            Y = reader.ReadFloat();
            Z = reader.ReadFloat();

            return this;
        }
Exemplo n.º 16
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Target = reader.ReadVarInt();
            Type = (UseEntity) reader.ReadVarInt();

            if (Type == UseEntity.INTERACT_AT)
            {
                TargetX = reader.ReadFloat();
                TargetY = reader.ReadFloat();
                TargetZ = reader.ReadFloat();
            }

            return this;
        }
Exemplo n.º 17
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Target = reader.ReadVarInt();
            Type = (UseEntity) reader.ReadVarInt();

            if (Type == UseEntity.INTERACT_AT)
            {
                TargetX = reader.ReadFloat();
                TargetY = reader.ReadFloat();
                TargetZ = reader.ReadFloat();
            }

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Reason = (GameStateReason) reader.ReadByte();
            Value = reader.ReadFloat();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            Reason = (GameStateReason)reader.ReadByte();
            Value  = reader.ReadFloat();

            return(this);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ExperienceBar = reader.ReadFloat();
            Level = reader.ReadVarInt();
            TotalExperience = reader.ReadVarInt();

            return this;
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ExperienceBar   = reader.ReadFloat();
            Level           = reader.ReadVarInt();
            TotalExperience = reader.ReadVarInt();

            return(this);
        }
Exemplo n.º 22
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ParticleID = (Particle) reader.ReadInt();
            LongDistance = reader.ReadBoolean();
            X = reader.ReadFloat();
            Y = reader.ReadFloat();
            Z = reader.ReadFloat();
            OffsetX = reader.ReadFloat();
            OffsetY = reader.ReadFloat();
            OffsetZ = reader.ReadFloat();
            ParticleData = reader.ReadFloat();
            NumberOfParticles = reader.ReadInt();

            switch (ParticleID)
            {
                case Particle.ITEM_CRACK:
                case Particle.BLOCK_CRACK:
                //case Particle.BLOCK_DUST:
                    Data = reader.ReadVarIntArray(2);
                    break;

                default:
                    Data = reader.ReadVarIntArray(0);
                    break;
            }

            return this;
        }
Exemplo n.º 23
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            ParticleID        = (Particle)reader.ReadInt();
            LongDistance      = reader.ReadBoolean();
            X                 = reader.ReadFloat();
            Y                 = reader.ReadFloat();
            Z                 = reader.ReadFloat();
            OffsetX           = reader.ReadFloat();
            OffsetY           = reader.ReadFloat();
            OffsetZ           = reader.ReadFloat();
            ParticleData      = reader.ReadFloat();
            NumberOfParticles = reader.ReadInt();

            switch (ParticleID)
            {
            case Particle.ITEM_CRACK:
            case Particle.BLOCK_CRACK:
                //case Particle.BLOCK_DUST:
                Data = reader.ReadVarIntArray(2);
                break;

            default:
                Data = reader.ReadVarIntArray(0);
                break;
            }

            return(this);
        }
Exemplo n.º 24
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            SoundName = reader.ReadString();
            Coordinates = Position.FromReaderInt(reader);
            Volume = reader.ReadFloat();
            Pitch = reader.ReadByte();

            return this;
        }
Exemplo n.º 25
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            SoundName   = reader.ReadString();
            Coordinates = Position.FromReaderInt(reader);
            Volume      = reader.ReadFloat();
            Pitch       = reader.ReadByte();

            return(this);
        }
Exemplo n.º 26
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            X             = reader.ReadFloat();
            Y             = reader.ReadFloat();
            Z             = reader.ReadFloat();
            Radius        = reader.ReadFloat();
            RecordCount   = reader.ReadInt();
            Records       = reader.ReadByteArray(3 * RecordCount);
            PlayerMotionX = reader.ReadFloat();
            PlayerMotionY = reader.ReadFloat();
            PlayerMotionZ = reader.ReadFloat();

            return(this);
        }
Exemplo n.º 27
0
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            X = reader.ReadFloat();
            Y = reader.ReadFloat();
            Z = reader.ReadFloat();
            Radius = reader.ReadFloat();
            RecordCount = reader.ReadInt();
            Records = reader.ReadByteArray(3 * RecordCount);
            PlayerMotionX = reader.ReadFloat();
            PlayerMotionY = reader.ReadFloat();
            PlayerMotionZ = reader.ReadFloat();

            return this;
        }
 public override void FromReader(IMinecraftDataReader reader)
 {
     Value = reader.ReadFloat();
 }
Exemplo n.º 29
0
 public override void FromReader(IMinecraftDataReader reader)
 {
     Value = reader.ReadFloat();
 }