public IPacket ReadPacket(IMinecraftDataReader reader) { Location = Position.FromReaderLong(reader); Byte1 = reader.ReadByte(); Byte2 = reader.ReadByte(); BlockType = reader.ReadVarInt(); switch (BlockType) { case 25: BlockAction = new BlockActionNoteBlock(Byte1, Byte2, BlockType); break; case 29: case 33: BlockAction = new BlockActionPiston(Byte1, Byte2, BlockType); break; case 54: case 130: // TODO: Check case 146: // TODO: Check BlockAction = new BlockActionChest(Byte1, Byte2, BlockType); break; } return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { BlockToHold = reader.ReadByte(); PreventChange = (PreventChange)reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { BlockToHold = reader.ReadByte(); PreventChange = (PreventChange) reader.ReadByte(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowId = reader.ReadByte(); Enchantment = reader.ReadByte(); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowId = reader.ReadByte(); Enchantment = reader.ReadByte(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { Status = (BlockStatus)reader.ReadByte(); Location = Position.FromReaderLong(reader); Face = reader.ReadByte(); return(this); }
public static Vector3 FromReaderByte(IMinecraftDataReader reader) { return(new Vector3( reader.ReadByte(), reader.ReadByte(), reader.ReadByte() )); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { BlockType = reader.ReadByte(); AllowPlacement = (AllowPlacement) reader.ReadByte(); AllowDeletion = (AllowDeletion) reader.ReadByte();; return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { PlayerID = reader.ReadSByte(); Yaw = reader.ReadByte(); Pitch = reader.ReadByte(); return(this); }
public static Coordinates2D FromReaderByte(IMinecraftDataReader reader) { return(new Coordinates2D ( reader.ReadByte(), reader.ReadByte() )); }
public IPacket ReadPacket(IMinecraftDataReader reader) { Status = (BlockStatus) reader.ReadByte(); Location = Position.FromReaderLong(reader); Face = reader.ReadByte(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { Coordinates = Position.FromReaderShort(reader); Mode = (SetBlockMode) reader.ReadByte(); BlockType = reader.ReadByte(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { BlockType = reader.ReadByte(); AllowPlacement = (AllowPlacement)reader.ReadByte(); AllowDeletion = (AllowDeletion)reader.ReadByte();; return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { Coordinates = Position.FromReaderShort(reader); Mode = (SetBlockMode)reader.ReadByte(); BlockType = reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { PlayerID = reader.ReadSByte(); Yaw = reader.ReadByte(); Pitch = reader.ReadByte(); return this; }
public static Position FromReaderByte(IMinecraftDataReader reader) { return(new Position ( reader.ReadByte(), reader.ReadByte(), reader.ReadByte() )); }
public IPacket ReadPacket(IMinecraftDataReader reader) { Dimension = (Dimension) reader.ReadInt(); Difficulty = (Difficulty) reader.ReadByte(); GameMode = (GameMode) reader.ReadByte(); LevelType = reader.ReadString(); 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) { Dimension = (Dimension)reader.ReadInt(); Difficulty = (Difficulty)reader.ReadByte(); GameMode = (GameMode)reader.ReadByte(); LevelType = reader.ReadString(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { TextureURL = reader.ReadString(); SideBlock = reader.ReadByte(); EdgeBlock = reader.ReadByte(); SideLevel = reader.ReadShort(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { ProtocolVersion = reader.ReadByte(); Username = reader.ReadString(); VerificationKey = reader.ReadString(); UnUsed = reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { ProtocolVersion = reader.ReadByte(); ServerName = reader.ReadString(); ServerMOTD = reader.ReadString(); UserType = (UserType)reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { PlayerID = reader.ReadSByte(); ChangeLocation = Position.FromReaderSByte(reader); Yaw = reader.ReadByte(); Pitch = reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { PlayerID = reader.ReadByte(); Coordinates = Position.FromReaderShort(reader); Yaw = reader.ReadByte(); Pitch = reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { TextureURL = reader.ReadString(); SideBlock = reader.ReadByte(); EdgeBlock = reader.ReadByte(); SideLevel = reader.ReadShort(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { ProtocolVersion = reader.ReadByte(); Username = reader.ReadString(); VerificationKey = reader.ReadString(); UnUsed = reader.ReadByte(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { ProtocolVersion = reader.ReadByte(); ServerName = reader.ReadString(); ServerMOTD = reader.ReadString(); UserType = (UserType) reader.ReadByte(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { Locale = reader.ReadString(); ViewDistance = reader.ReadByte(); ChatFlags = (ChatFlags) reader.ReadByte(); ChatColours = reader.ReadBoolean(); DisplayedSkinParts = DisplayedSkinParts.FromReader(reader); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { Locale = reader.ReadString(); ViewDistance = reader.ReadByte(); ChatFlags = (ChatFlags)reader.ReadByte(); ChatColours = reader.ReadBoolean(); DisplayedSkinParts = DisplayedSkinParts.FromReader(reader); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { Flying = (Flying)reader.ReadByte(); NoClip = (NoClip)reader.ReadByte(); Speeding = (Speeding)reader.ReadByte(); SpawnControl = (SpawnControl)reader.ReadByte(); ThirdPersonView = (ThirdPersonView)reader.ReadByte(); JumpHeight = reader.ReadShort(); return(this); }
public ITeam FromReader(IMinecraftDataReader reader) { TeamDisplayName = reader.ReadString(); TeamPrefix = reader.ReadString(); TeamSuffix = reader.ReadString(); FriendlyFire = reader.ReadByte(); NameTagVisibility = reader.ReadString(); Color = reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadByte(); InGameName = reader.ReadString(); SkinName = reader.ReadString(); SpawnLocation = Position.FromReaderShort(reader); SpawnYaw = reader.ReadByte(); SpawnPitch = reader.ReadByte(); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); InventoryType = reader.ReadString(); WindowTitle = reader.ReadString(); NumberOfSlots = reader.ReadByte(); if (InventoryType == "EntityHorse") EntityID = reader.ReadInt(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); Slot = reader.ReadShort(); Button = reader.ReadByte(); ActionNumber = reader.ReadShort(); Mode = reader.ReadByte(); ClickedItem = ItemStack.FromReader(reader); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); Slot = reader.ReadShort(); Button = reader.ReadByte(); ActionNumber = reader.ReadShort(); Mode = reader.ReadByte(); ClickedItem = ItemStack.FromReader(reader); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { Flying = (Flying) reader.ReadByte(); NoClip = (NoClip) reader.ReadByte(); Speeding = (Speeding) reader.ReadByte(); SpawnControl = (SpawnControl) reader.ReadByte(); ThirdPersonView = (ThirdPersonView) reader.ReadByte(); JumpHeight = reader.ReadShort(); return this; }
public ITeam FromReader(IMinecraftDataReader reader) { TeamDisplayName = reader.ReadString(); TeamPrefix = reader.ReadString(); TeamSuffix = reader.ReadString(); FriendlyFire = reader.ReadByte(); NameTagVisibility = reader.ReadString(); Color = reader.ReadByte(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadByte(); InGameName = reader.ReadString(); SkinName = reader.ReadString(); SpawnLocation = Position.FromReaderShort(reader); SpawnYaw = reader.ReadByte(); SpawnPitch = reader.ReadByte(); return this; }
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); }
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; }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); InventoryType = reader.ReadString(); WindowTitle = reader.ReadString(); NumberOfSlots = reader.ReadByte(); if (InventoryType == "EntityHorse") { EntityID = reader.ReadInt(); } return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); ItemStackList = ItemStackList.FromReader(reader); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadVarInt(); Action = (EntityAction)reader.ReadByte(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadByte(); ModelName = reader.ReadString(); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { Reason = (GameStateReason)reader.ReadByte(); Value = reader.ReadFloat(); return(this); }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadByte(); ModelName = reader.ReadString(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { Reason = (GameStateReason) reader.ReadByte(); Value = reader.ReadFloat(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { TeamName = reader.ReadString(); Action = (TeamAction)reader.ReadByte(); switch (Action) { case TeamAction.CreateTeam: Team = new TeamsCreateTeam().FromReader(reader); break; case TeamAction.RemoveTeam: Team = new TeamsRemoveTeam().FromReader(reader); break; case TeamAction.UpdateTeam: Team = new TeamsUpdateTeam().FromReader(reader); break; case TeamAction.AddPlayers: Team = new TeamsAddPlayers().FromReader(reader); break; case TeamAction.RemovePlayers: Team = new TeamsRemovePlayers().FromReader(reader); break; } return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { Message = reader.ReadString(); Position = (ChatMessagePosition) reader.ReadByte(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { UnUsed = reader.ReadByte(); Message = reader.ReadString(); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadVarInt(); Action = (EntityAction) reader.ReadByte(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); ItemStackList = ItemStackList.FromReader(reader); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { Message = reader.ReadString(); Position = (ChatMessagePosition)reader.ReadByte(); return(this); }
public IPacket ReadPacket(IMinecraftDataReader reader) { Flags = reader.ReadByte(); FlyingSpeed = reader.ReadFloat(); WalkingSpeed = reader.ReadFloat(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { EntityID = reader.ReadVarInt(); Type = (Objects) reader.ReadByte(); Vector3 = Vector3.FromReaderIntFixedPoint(reader); Yaw = reader.ReadByte(); Pitch = reader.ReadByte(); var data = reader.ReadInt(); if (data > 0) { SpeedX = reader.ReadShort(); SpeedY = reader.ReadShort(); SpeedZ = reader.ReadShort(); } return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { ChunkLength = reader.ReadShort(); ChunkData = reader.ReadByteArray(1024); PercentComplete = reader.ReadByte(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { WindowID = reader.ReadByte(); Slot = reader.ReadShort(); Accepted = reader.ReadBoolean(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { Sideways = reader.ReadFloat(); Forward = reader.ReadFloat(); Flags = (SteerVehicle) reader.ReadByte(); return this; }
public IPacket ReadPacket(IMinecraftDataReader reader) { SoundName = reader.ReadString(); Coordinates = Position.FromReaderInt(reader); Volume = reader.ReadFloat(); Pitch = reader.ReadByte(); return this; }
public IPacketWithSize ReadPacket(IMinecraftDataReader reader) { Variable = (EnvironmentalVariable) reader.ReadByte(); Red = reader.ReadShort(); Green = reader.ReadShort(); Blue = reader.ReadShort(); return this; }