-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from aternosorg/network-protocol-error-reports
added network protocol error reports
- Loading branch information
Showing
29 changed files
with
1,466 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...CrashReport/FabricCrashReportAnalyser.php → ...CrashReport/FabricCrashReportAnalyser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../CrashReport/ForgeCrashReportAnalyser.php → .../CrashReport/ForgeCrashReportAnalyser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Analyser/Report/CrashReport/MinecraftCrashReportAnalyser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Analyser\Report\CrashReport; | ||
|
||
use Aternos\Codex\Minecraft\Analyser\Report\MinecraftReportAnalyser; | ||
use Aternos\Codex\Minecraft\Analysis\Problem\CrashReport\TickingBlockEntityProblem; | ||
use Aternos\Codex\Minecraft\Analysis\Problem\CrashReport\TickingEntityProblem; | ||
|
||
/** | ||
* Class MinecraftCrashReportAnalyser | ||
* | ||
* @package Aternos\Codex\Minecraft\Analyser\Report\CrashReport | ||
*/ | ||
class MinecraftCrashReportAnalyser extends MinecraftReportAnalyser | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct(); | ||
$this->addPossibleInsightClass(TickingEntityProblem::class); | ||
$this->addPossibleInsightClass(TickingBlockEntityProblem::class); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ashReport/NeoForgeCrashReportAnalyser.php → ...ashReport/NeoForgeCrashReportAnalyser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../CrashReport/QuiltCrashReportAnalyser.php → .../CrashReport/QuiltCrashReportAnalyser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Analyser\Report; | ||
|
||
use Aternos\Codex\Minecraft\Analyser\MinecraftAnalyser; | ||
use Aternos\Codex\Minecraft\Analysis\Information\CrashReport\JavaVersionInformation; | ||
use Aternos\Codex\Minecraft\Analysis\Information\CrashReport\VanillaVersionInformation; | ||
|
||
class MinecraftReportAnalyser extends MinecraftAnalyser | ||
{ | ||
public function __construct() | ||
{ | ||
$this->addPossibleInsightClass(VanillaVersionInformation::class); | ||
$this->addPossibleInsightClass(JavaVersionInformation::class); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...nalyser/Report/NetworkProtocolErrorReport/MinecraftNetworkProtocolErrorReportAnalyser.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Analyser\Report\NetworkProtocolErrorReport; | ||
|
||
use Aternos\Codex\Minecraft\Analyser\Report\MinecraftReportAnalyser; | ||
|
||
class MinecraftNetworkProtocolErrorReportAnalyser extends MinecraftReportAnalyser | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Log/Minecraft/Vanilla/VanillaNetworkProtocolErrorReportLog.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log\Minecraft\Vanilla; | ||
|
||
use Aternos\Codex\Detective\DetectorInterface; | ||
use Aternos\Codex\Detective\SinglePatternDetector; | ||
use Aternos\Codex\Minecraft\Log\Type\NetworkProtocolErrorReportLogTypeInterface; | ||
|
||
class VanillaNetworkProtocolErrorReportLog extends VanillaReportLog implements NetworkProtocolErrorReportLogTypeInterface | ||
{ | ||
use VanillaNetworkProtocolErrorReportTrait; | ||
|
||
/** | ||
* @return DetectorInterface[] | ||
*/ | ||
public static function getDetectors(): array | ||
{ | ||
return [(new SinglePatternDetector())->setPattern("/---- Minecraft Network Protocol Error Report ----/")]; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Log/Minecraft/Vanilla/VanillaNetworkProtocolErrorReportTrait.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log\Minecraft\Vanilla; | ||
|
||
use Aternos\Codex\Minecraft\Analyser\Report\NetworkProtocolErrorReport\MinecraftNetworkProtocolErrorReportAnalyser; | ||
|
||
trait VanillaNetworkProtocolErrorReportTrait | ||
{ | ||
use VanillaReportTrait; | ||
|
||
/** | ||
* @return MinecraftNetworkProtocolErrorReportAnalyser | ||
*/ | ||
public static function getDefaultAnalyser(): MinecraftNetworkProtocolErrorReportAnalyser | ||
{ | ||
return new MinecraftNetworkProtocolErrorReportAnalyser(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log\Minecraft\Vanilla; | ||
|
||
use Aternos\Codex\Minecraft\Log\Type\ReportLogTypeInterface; | ||
|
||
class VanillaReportLog extends VanillaLog implements ReportLogTypeInterface | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log\Minecraft\Vanilla; | ||
|
||
use Aternos\Codex\Minecraft\Parser\ReportParser; | ||
|
||
trait VanillaReportTrait | ||
{ | ||
/** | ||
* @return ReportParser | ||
*/ | ||
public static function getDefaultParser(): ReportParser | ||
{ | ||
return new ReportParser(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Log/Type/NetworkProtocolErrorReportLogTypeInterface.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log\Type; | ||
|
||
/** | ||
* Interface NetworkProtocolErrorReportLogTypeInterface | ||
* | ||
* @package Aternos\Codex\Minecraft\Log\Type | ||
*/ | ||
interface NetworkProtocolErrorReportLogTypeInterface extends ReportLogTypeInterface | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Aternos\Codex\Minecraft\Log\Type; | ||
|
||
/** | ||
* Interface ReportLogTypeInterface | ||
* | ||
* @package Aternos\Codex\Minecraft\Log\Type | ||
*/ | ||
interface ReportLogTypeInterface | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.