Package net.minecraft.gametest.framework
Class ReportGameListener
java.lang.Object
net.minecraft.gametest.framework.ReportGameListener
- All Implemented Interfaces:
GameTestListener
-
Field Summary
Modifier and TypeFieldDescription(package private) int
private final GameTestInfo
private final BlockPos
(package private) int
private final GameTestTicker
-
Constructor Summary
ConstructorDescriptionReportGameListener
(GameTestInfo p_177692_, GameTestTicker p_177693_, BlockPos p_177694_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static ItemStack
createBook
(String p_177711_, boolean p_177712_, String p_177713_) protected static void
reportFailure
(GameTestInfo p_177726_, Throwable p_177727_) static void
reportPassed
(GameTestInfo p_177723_, String p_177724_) private void
protected static void
say
(ServerLevel p_177701_, ChatFormatting p_177702_, String p_177703_) private static void
showRedBox
(ServerLevel p_177697_, BlockPos p_177698_, String p_177699_) protected static void
spawnBeacon
(GameTestInfo p_177720_, Block p_177721_) private static void
spawnLectern
(GameTestInfo p_177739_, String p_177740_) void
testFailed
(GameTestInfo p_177737_) void
testPassed
(GameTestInfo p_177729_) void
testStructureLoaded
(GameTestInfo p_177718_) protected static void
visualizeFailedTest
(GameTestInfo p_177734_, Throwable p_177735_) private static void
visualizePassedTest
(GameTestInfo p_177731_, String p_177732_)
-
Field Details
-
originalTestInfo
-
testTicker
-
structurePos
-
attempts
int attempts -
successes
int successes
-
-
Constructor Details
-
ReportGameListener
-
-
Method Details
-
testStructureLoaded
- Specified by:
testStructureLoaded
in interfaceGameTestListener
-
testPassed
- Specified by:
testPassed
in interfaceGameTestListener
-
testFailed
- Specified by:
testFailed
in interfaceGameTestListener
-
reportPassed
-
visualizePassedTest
-
reportFailure
-
visualizeFailedTest
-
rerunTest
private void rerunTest() -
spawnBeacon
-
spawnLectern
-
createBook
-
say
-
showRedBox
-