refactor: move NetworkPlayerInterface and SessionInfo into minecraft

This commit is contained in:
MatthewBeshay 2026-04-08 21:15:09 +10:00
parent 79fafe0e83
commit da47791d8d
32 changed files with 33 additions and 33 deletions

View file

@ -13,7 +13,7 @@
#include "app/common/DLC/DLCSkinFile.h" #include "app/common/DLC/DLCSkinFile.h"
#include "app/common/GameRules/GameRuleManager.h" #include "app/common/GameRules/GameRuleManager.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Tutorial/Tutorial.h" #include "app/common/Tutorial/Tutorial.h"
#include "app/common/UI/All Platforms/UIEnums.h" #include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"

View file

@ -3,7 +3,7 @@
#include "app/common/Game.h" #include "app/common/Game.h"
#include "app/common/GameRules/GameRuleManager.h" #include "app/common/GameRules/GameRuleManager.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Tutorial/Tutorial.h" #include "app/common/Tutorial/Tutorial.h"
#include "app/common/UI/All Platforms/UIEnums.h" #include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"

View file

@ -17,7 +17,7 @@
#include "app/common/Game.h" #include "app/common/Game.h"
#include "app/common/GameRules/GameRuleManager.h" #include "app/common/GameRules/GameRuleManager.h"
#include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h" #include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Network/PlatformNetworkManagerStub.h" #include "app/common/Network/PlatformNetworkManagerStub.h"
#include "app/common/UI/All Platforms/UIEnums.h" #include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"

View file

@ -10,9 +10,9 @@
#include "platform/PlatformTypes.h" #include "platform/PlatformTypes.h"
#include "platform/IPlatformNetwork.h" #include "platform/IPlatformNetwork.h"
#include "platform/NetTypes.h" #include "platform/NetTypes.h"
#include "NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "PlatformNetworkManagerStub.h" #include "PlatformNetworkManagerStub.h"
#include "SessionInfo.h" #include "minecraft/network/platform/SessionInfo.h"
#include "platform/C4JThread.h" #include "platform/C4JThread.h"
class ClientConnection; class ClientConnection;

View file

@ -5,7 +5,7 @@
#include <string> #include <string>
#include "platform/PlatformTypes.h" #include "platform/PlatformTypes.h"
#include "NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
class IQNetPlayer; class IQNetPlayer;
class Socket; class Socket;

View file

@ -7,8 +7,8 @@
#endif #endif
#include "platform/NetTypes.h" #include "platform/NetTypes.h"
#include "minecraft/client/model/SkinBox.h" #include "minecraft/client/model/SkinBox.h"
#include "NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "SessionInfo.h" #include "minecraft/network/platform/SessionInfo.h"
#include "platform/C4JThread.h" #include "platform/C4JThread.h"
class ClientConnection; class ClientConnection;

View file

@ -6,7 +6,7 @@
#include <compare> #include <compare>
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/linux/LinuxGame.h" #include "app/linux/LinuxGame.h"
#include "app/linux/Stubs/winapi_stubs.h" #include "app/linux/Stubs/winapi_stubs.h"
#include "platform/NetTypes.h" #include "platform/NetTypes.h"

View file

@ -8,9 +8,9 @@
#include "platform/NetTypes.h" #include "platform/NetTypes.h"
#include "minecraft/client/model/SkinBox.h" #include "minecraft/client/model/SkinBox.h"
#include "platform/XboxStubs.h" #include "platform/XboxStubs.h"
#include "NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "platform/IPlatformNetwork.h" #include "platform/IPlatformNetwork.h"
#include "SessionInfo.h" #include "minecraft/network/platform/SessionInfo.h"
#include "platform/C4JThread.h" #include "platform/C4JThread.h"
class C4JThread; class C4JThread;

View file

@ -9,7 +9,7 @@
// 4jcraft TODO // 4jcraft TODO
#include "platform/ShutdownManager.h" #include "platform/ShutdownManager.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "platform/NetTypes.h" #include "platform/NetTypes.h"
#include "minecraft/server/network/ServerConnection.h" #include "minecraft/server/network/ServerConnection.h"

View file

@ -11,7 +11,7 @@
#include <queue> #include <queue>
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "platform/C4JThread.h" #include "platform/C4JThread.h"
#include "java/InputOutputStream/InputStream.h" #include "java/InputOutputStream/InputStream.h"
#include "java/InputOutputStream/OutputStream.h" #include "java/InputOutputStream/OutputStream.h"

View file

@ -2,7 +2,7 @@
#include <memory> #include <memory>
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Tutorial/Constraints/TutorialConstraint.h" #include "app/common/Tutorial/Constraints/TutorialConstraint.h"
#include "app/common/Tutorial/Tutorial.h" #include "app/common/Tutorial/Tutorial.h"
#include "app/common/Tutorial/TutorialEnum.h" #include "app/common/Tutorial/TutorialEnum.h"

View file

@ -6,7 +6,7 @@
#include "minecraft/GameTypes.h" #include "minecraft/GameTypes.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/SessionInfo.h" #include "minecraft/network/platform/SessionInfo.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Button.h" #include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/Controls/UIControl_ButtonList.h" #include "app/common/UI/Controls/UIControl_ButtonList.h"

View file

@ -13,7 +13,7 @@
#include "app/common/DLC/DLCManager.h" #include "app/common/DLC/DLCManager.h"
#include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h" #include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/SessionInfo.h" #include "minecraft/network/platform/SessionInfo.h"
#include "app/common/UI/Controls/UIControl_Label.h" #include "app/common/UI/Controls/UIControl_Label.h"
#include "app/common/UI/Controls/UIControl_SaveList.h" #include "app/common/UI/Controls/UIControl_SaveList.h"
#include "app/common/UI/UILayer.h" #include "app/common/UI/UILayer.h"

View file

@ -5,7 +5,7 @@
#include "minecraft/GameEnums.h" #include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Button.h" #include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/Controls/UIControl_CheckBox.h" #include "app/common/UI/Controls/UIControl_CheckBox.h"

View file

@ -7,7 +7,7 @@
#include "minecraft/GameEnums.h" #include "minecraft/GameEnums.h"
#include "app/common/Console_Debug_enum.h" #include "app/common/Console_Debug_enum.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Button.h" #include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/Controls/UIControl_Label.h" #include "app/common/UI/Controls/UIControl_Label.h"

View file

@ -5,7 +5,7 @@
#include "minecraft/GameEnums.h" #include "minecraft/GameEnums.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Button.h" #include "app/common/UI/Controls/UIControl_Button.h"
#include "app/common/UI/Controls/UIControl_CheckBox.h" #include "app/common/UI/Controls/UIControl_CheckBox.h"

View file

@ -5,7 +5,7 @@
#include "app/common/Console_Debug_enum.h" #include "app/common/Console_Debug_enum.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/Controls/UIControl_Label.h" #include "app/common/UI/Controls/UIControl_Label.h"
#include "app/common/UI/Controls/UIControl_PlayerList.h" #include "app/common/UI/Controls/UIControl_PlayerList.h"

View file

@ -20,7 +20,7 @@
#include "app/common/Audio/SoundEngine.h" #include "app/common/Audio/SoundEngine.h"
#include "app/common/DLC/DLCManager.h" #include "app/common/DLC/DLCManager.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Tutorial/Tutorial.h" #include "app/common/Tutorial/Tutorial.h"
#include "app/common/UI/All Platforms/UIEnums.h" #include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h" #include "app/common/UI/All Platforms/UIStructs.h"

View file

@ -23,7 +23,7 @@
#include "app/common/DLC/DLCSkinFile.h" #include "app/common/DLC/DLCSkinFile.h"
#include "app/common/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h" #include "app/common/GameRules/LevelRules/RuleDefinitions/GameRuleDefinition.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Network/Socket.h" #include "app/common/Network/Socket.h"
#include "app/common/Tutorial/FullTutorialMode.h" #include "app/common/Tutorial/FullTutorialMode.h"
#include "app/common/Tutorial/Tutorial.h" #include "app/common/Tutorial/Tutorial.h"

View file

@ -8,7 +8,7 @@
#include "platform/ShutdownManager.h" #include "platform/ShutdownManager.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Network/Socket.h" #include "app/common/Network/Socket.h"
#include "util/StringHelpers.h" #include "util/StringHelpers.h"
#include "minecraft/world/level/storage/ConsoleSaveFileIO/compression.h" #include "minecraft/world/level/storage/ConsoleSaveFileIO/compression.h"

View file

@ -1,4 +1,4 @@
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "java/InputOutputStream/DataInputStream.h" #include "java/InputOutputStream/DataInputStream.h"
#include "java/InputOutputStream/DataOutputStream.h" #include "java/InputOutputStream/DataOutputStream.h"
#include "minecraft/network/packet/PacketListener.h" #include "minecraft/network/packet/PacketListener.h"

View file

@ -21,7 +21,7 @@
#include "app/common/GameRules/GameRuleManager.h" #include "app/common/GameRules/GameRuleManager.h"
#include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h" #include "app/common/GameRules/LevelGeneration/LevelGenerationOptions.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "PlayerList.h" #include "PlayerList.h"
#include "Settings.h" #include "Settings.h"
#include "util/Timer.h" #include "util/Timer.h"

View file

@ -16,7 +16,7 @@
#include "app/common/GameRules/LevelRules/RuleDefinitions/LevelRuleset.h" #include "app/common/GameRules/LevelRules/RuleDefinitions/LevelRuleset.h"
#include "app/common/GameRules/LevelRules/Rules/GameRulesInstance.h" #include "app/common/GameRules/LevelRules/Rules/GameRulesInstance.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Network/Socket.h" #include "app/common/Network/Socket.h"
#include "app/common/Tutorial/Tutorial.h" #include "app/common/Tutorial/Tutorial.h"
#include "app/common/Tutorial/TutorialEnum.h" #include "app/common/Tutorial/TutorialEnum.h"

View file

@ -7,7 +7,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "ServerLevel.h" #include "ServerLevel.h"
#include "ServerPlayer.h" #include "ServerPlayer.h"
#include "TrackedEntity.h" #include "TrackedEntity.h"

View file

@ -11,7 +11,7 @@
#include <utility> #include <utility>
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "ServerChunkCache.h" #include "ServerChunkCache.h"
#include "ServerLevel.h" #include "ServerLevel.h"
#include "ServerPlayer.h" #include "ServerPlayer.h"

View file

@ -14,7 +14,7 @@
#include "app/common/Console_Debug_enum.h" #include "app/common/Console_Debug_enum.h"
#include "app/common/DLC/DLCManager.h" #include "app/common/DLC/DLCManager.h"
#include "app/common/DLC/DLCPack.h" #include "app/common/DLC/DLCPack.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "PlayerChunkMap.h" #include "PlayerChunkMap.h"
#include "Pos.h" #include "Pos.h"
#include "ServerChunkCache.h" #include "ServerChunkCache.h"

View file

@ -15,7 +15,7 @@
#include "app/common/Console_Debug_enum.h" #include "app/common/Console_Debug_enum.h"
#include "app/common/GameRules/LevelRules/Rules/GameRulesInstance.h" #include "app/common/GameRules/LevelRules/Rules/GameRulesInstance.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "ServerLevel.h" #include "ServerLevel.h"
#include "ServerPlayerGameMode.h" #include "ServerPlayerGameMode.h"
#include "java/InputOutputStream/ByteArrayInputStream.h" #include "java/InputOutputStream/ByteArrayInputStream.h"

View file

@ -11,7 +11,7 @@
#include "platform/PlatformTypes.h" #include "platform/PlatformTypes.h"
#include "EntityTracker.h" #include "EntityTracker.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "ServerPlayer.h" #include "ServerPlayer.h"
#include "java/Class.h" #include "java/Class.h"
#include "minecraft/SharedConstants.h" #include "minecraft/SharedConstants.h"

View file

@ -11,7 +11,7 @@
#include "platform/storage/storage.h" #include "platform/storage/storage.h"
#include "minecraft/GameEnums.h" #include "minecraft/GameEnums.h"
#include "app/common/BuildVer/BuildVer.h" #include "app/common/BuildVer/BuildVer.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "platform/IPlatformNetwork.h" #include "platform/IPlatformNetwork.h"
#include "platform/NetTypes.h" #include "platform/NetTypes.h"
#include "PlayerConnection.h" #include "PlayerConnection.h"

View file

@ -16,7 +16,7 @@
#include "app/common/DLC/DLCManager.h" #include "app/common/DLC/DLCManager.h"
#include "app/common/DLC/DLCSkinFile.h" #include "app/common/DLC/DLCSkinFile.h"
#include "app/common/Network/GameNetworkManager.h" #include "app/common/Network/GameNetworkManager.h"
#include "app/common/Network/NetworkPlayerInterface.h" #include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "app/common/Network/Socket.h" #include "app/common/Network/Socket.h"
#include "minecraft/client/model/SkinBox.h" #include "minecraft/client/model/SkinBox.h"
#include "ServerConnection.h" #include "ServerConnection.h"