public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(ProtocolVersion); stream.WriteString(ServerHostname); stream.WriteUInt16(ServerPort); stream.WriteVarInt((int)NextState); return NextState; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(KeepAlive); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { if (direction == PacketDirection.Clientbound) { stream.WriteVarInt(Completions.Length); for (long i = 0; i < Completions.Length; i++) stream.WriteString(Completions[i]); } else stream.WriteString(Text); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteInt16(VelocityX); stream.WriteInt16(VelocityY); stream.WriteInt16(VelocityZ); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteUInt8(Type); stream.WriteInt32(X); stream.WriteInt32(Y); stream.WriteInt32(Z); stream.WriteUInt8(Yaw); stream.WriteUInt8(Pitch); stream.WriteUInt8(HeadYaw); stream.WriteInt16(VelocityX); stream.WriteInt16(VelocityY); stream.WriteInt16(VelocityZ); Metadata.WriteTo(stream); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(ItemId); stream.WriteVarInt(PlayerId); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { if (direction == PacketDirection.Serverbound) return mode; stream.WriteVarInt(EntityId); stream.WriteUInt8((byte)Animation); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteSingle(Health); stream.WriteVarInt(Food); stream.WriteSingle(FoodSaturation); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteInt32(X); stream.WriteInt32(Z); stream.WriteBoolean(GroundUpContinuous); stream.WriteUInt16(PrimaryBitMap); stream.WriteVarInt(Data.Length); stream.WriteUInt8Array(Data); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteSingle(ExperienceBar); stream.WriteVarInt(Level); stream.WriteVarInt(TotalExperience); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteUInt8(EffectId); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteUInt8(EffectId); stream.WriteUInt8(Amplifier); stream.WriteVarInt(Duration); stream.WriteBoolean(HideParticles); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); Metadata.WriteTo(stream); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteInt32(X); stream.WriteInt32(Y); stream.WriteInt32(Z); stream.WriteUInt8(Yaw); stream.WriteUInt8(Pitch); stream.WriteBoolean(OnGround); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(Data.Length); stream.WriteUInt8Array(Data); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteInt16((short)Slot); Item.WriteTo(stream); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteInt32(ChunkX); stream.WriteInt32(ChunkZ); stream.WriteVarInt(RecordCount); for (int i = 0; i < RecordCount; i++) { stream.WriteUInt8(Records[i].HorizonalPosition); stream.WriteUInt8(Records[i].Y); stream.WriteVarInt(Records[i].BlockId); } return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WritePosition(Location); stream.WriteVarInt(BlockType); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteInt32(X); stream.WriteInt16(Y); stream.WriteInt32(Z); stream.WriteUInt8(Data1); stream.WriteUInt8(Data2); stream.WriteVarInt(BlockId); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteUInt8Array(PlayerUuid.ToByteArray()); stream.WriteString(PlayerName); stream.WriteInt32(X); stream.WriteInt32(Y); stream.WriteInt32(Z); stream.WriteUInt8(Yaw); stream.WriteUInt8(Pitch); stream.WriteInt16(HeldItem); Metadata.WriteTo(stream); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteUInt8(Type); stream.WriteInt32(X); stream.WriteInt32(Y); stream.WriteInt32(Z); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteUInt8(Type); stream.WriteInt32(X); stream.WriteInt32(Y); stream.WriteInt32(Z); stream.WriteUInt8(Yaw); stream.WriteUInt8(Pitch); stream.WriteInt32(Data); if (Data != 0) { stream.WriteInt16(SpeedX.Value); stream.WriteInt16(SpeedY.Value); stream.WriteInt16(SpeedZ.Value); } return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(Statistics.Length); for (long i = 0; i < Statistics.LongLength; i++) { stream.WriteString(Statistics[i].Name); stream.WriteVarInt(Statistics[i].Value); } return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteVarInt(EntityId); stream.WriteString(Title); stream.WritePosition(Location); stream.WriteUInt8(Direction); return mode; }
public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { stream.WriteInt32(X); stream.WriteUInt8(Y); stream.WriteInt32(Z); stream.WriteVarInt(BlockType); stream.WriteUInt8(BlockMetadata); return mode; }