コード例 #1
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     LevelType = stream.ReadString();
     GameMode = (GameMode)stream.ReadUInt8();
     Dimension = (Dimension)stream.ReadInt8();
     Difficulty = (Difficulty)stream.ReadUInt8();
     Discarded = stream.ReadUInt8();
     MaxPlayers = stream.ReadUInt8();
 }
コード例 #2
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     ChunkX = stream.ReadInt32();
     ChunkZ = stream.ReadInt32();
     RecordCount = stream.ReadInt16();
     stream.ReadInt32();
     Data = stream.ReadInt32Array(RecordCount);
 }
コード例 #3
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     Type = stream.ReadUInt8();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     Yaw = stream.ReadUInt8();
     Pitch = stream.ReadUInt8();
     HeadYaw = stream.ReadUInt8();
     VelocityX = stream.ReadInt16();
     VelocityY = stream.ReadInt16();
     VelocityZ = stream.ReadInt16();
     Metadata = MetadataDictionary.FromStream(stream);
 }
コード例 #4
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     ItemId = stream.ReadInt32();
     PlayerId = stream.ReadInt32();
 }
コード例 #5
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     Action = (EntityAction)stream.ReadUInt8();
 }
コード例 #6
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     Dimension = (Dimension)stream.ReadInt32();
     Difficulty = (Difficulty)stream.ReadInt8();
     GameMode = (GameMode)stream.ReadInt8();
     WorldHeight = stream.ReadInt16();
     LevelType = stream.ReadString();
 }
コード例 #7
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadUInt8();
     Z = stream.ReadInt32();
     Direction = stream.ReadUInt8();
     HeldItem = ItemStack.FromStream(stream);
     CursorX = stream.ReadUInt8();
     CursorY = stream.ReadUInt8();
     CursorZ = stream.ReadUInt8();
 }
コード例 #8
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     X = stream.ReadInt32();
     Y = stream.ReadUInt8();
     Z = stream.ReadInt32();
     Data = stream.ReadInt32();
     DisableRelativeVolume = stream.ReadBoolean();
 }
コード例 #9
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     SoundName = stream.ReadString();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     Volume = stream.ReadSingle();
     Pitch = stream.ReadUInt8();
 }
コード例 #10
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     ChunkCount = stream.ReadInt16();
     var length = stream.ReadInt32();
     LightIncluded = stream.ReadBoolean();
     ChunkData = stream.ReadUInt8Array(length);
     ChunkMetadata = stream.ReadUInt8Array(ChunkCount * 12);
 }
コード例 #11
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadDouble();
     Y = stream.ReadDouble();
     Z = stream.ReadDouble();
     Radius = stream.ReadSingle();
     RecordCount = stream.ReadInt32();
     Records = stream.ReadUInt8Array(RecordCount * 3);
     PlayerVelocityX = stream.ReadSingle();
     PlayerVelocityY = stream.ReadSingle();
     PlayerVelocityZ = stream.ReadSingle();
 }
コード例 #12
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     DestroyStage = stream.ReadUInt8();
 }
コード例 #13
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadInt16();
     Z = stream.ReadInt32();
     Data1 = stream.ReadUInt8();
     Data2 = stream.ReadUInt8();
     BlockId = stream.ReadInt16();
 }
コード例 #14
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadUInt8();
     Z = stream.ReadInt32();
     BlockType = stream.ReadInt16();
     BlockMetadata = stream.ReadUInt8();
 }
コード例 #15
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     ItemName = stream.ReadString();
     RemoveItem = stream.ReadBoolean();
     if (!RemoveItem)
     {
         ScoreName = stream.ReadString();
         Value = stream.ReadInt32();
     }
 }
コード例 #16
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EffectName = stream.ReadString();
     X = stream.ReadSingle();
     Y = stream.ReadSingle();
     Z = stream.ReadSingle();
     OffsetX = stream.ReadSingle();
     OffsetY = stream.ReadSingle();
     OffsetZ = stream.ReadSingle();
     ParticleSpeed = stream.ReadSingle();
     ParticleCount = stream.ReadInt32();
 }
コード例 #17
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     KeepAlive = stream.ReadInt32();
 }
コード例 #18
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     SlotIndex = (EntityEquipmentSlot)stream.ReadInt16();
     Slot = ItemStack.FromStream(stream);
 }
コード例 #19
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     Action = (PlayerAction)stream.ReadUInt8();
     X = stream.ReadInt32();
     Y = stream.ReadUInt8();
     Z = stream.ReadInt32();
     Face = stream.ReadUInt8();
 }
コード例 #20
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
 }
コード例 #21
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     Unknown = stream.ReadUInt8();
     X = stream.ReadInt32();
     Y = stream.ReadUInt8();
     Z = stream.ReadInt32();
 }
コード例 #22
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadInt16();
     Z = stream.ReadInt32();
     Text1 = stream.ReadString();
     Text2 = stream.ReadString();
     Text3 = stream.ReadString();
     Text4 = stream.ReadString();
 }
コード例 #23
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     Animation = (AnimationType)stream.ReadUInt8();
 }
コード例 #24
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Y = stream.ReadInt16();
     Z = stream.ReadInt32();
     Action = stream.ReadUInt8();
     var length = stream.ReadInt16();
     var data = stream.ReadUInt8Array(length);
     Nbt = new NbtFile();
     Nbt.LoadFromBuffer(data, 0, length, NbtCompression.GZip, null);
 }
コード例 #25
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     PlayerName = stream.ReadString();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     Yaw = stream.ReadUInt8();
     Pitch = stream.ReadUInt8();
     HeldItem = stream.ReadInt16();
     Metadata = MetadataDictionary.FromStream(stream);
 }
コード例 #26
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     StatisticId = stream.ReadInt32();
     Amount = stream.ReadUInt8();
 }
コード例 #27
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     Type = stream.ReadUInt8();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     Yaw = stream.ReadUInt8();
     Pitch = stream.ReadUInt8();
     Data = stream.ReadInt32();
     if (Data != 0)
     {
         SpeedX = stream.ReadInt16();
         SpeedY = stream.ReadInt16();
         SpeedZ = stream.ReadInt16();
     }
 }
コード例 #28
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     User = stream.ReadInt32();
     Target = stream.ReadInt32();
     LeftClick = stream.ReadBoolean();
 }
コード例 #29
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     EntityId = stream.ReadInt32();
     Title = stream.ReadString();
     X = stream.ReadInt32();
     Y = stream.ReadInt32();
     Z = stream.ReadInt32();
     Direction = stream.ReadInt32();
 }
コード例 #30
0
ファイル: Packets.cs プロジェクト: skirmish/Craft.Net
 public void ReadPacket(MinecraftStream stream)
 {
     X = stream.ReadInt32();
     Z = stream.ReadInt32();
     GroundUpContinuous = stream.ReadBoolean();
     PrimaryBitMap = stream.ReadUInt16();
     AddBitMap = stream.ReadUInt16();
     var length = stream.ReadInt32();
     Data = stream.ReadUInt8Array(length);
 }