Package net.minecraft.test
Class StructureTestListener
java.lang.Object
net.minecraft.test.StructureTestListener
- All Implemented Interfaces:
TestListener
class StructureTestListener extends Object implements TestListener
- Mappings:
Namespace Name official mc
intermediary net/minecraft/class_5624
named net/minecraft/test/StructureTestListener
-
Field Summary
Fields Modifier and Type Field Description (package private) int
attempt
private BlockPos
pos
(package private) int
successes
private GameTest
test
private TestManager
testManager
-
Constructor Summary
Constructors Constructor Description StructureTestListener(GameTest test, TestManager testManager, BlockPos pos)
-
Method Summary
Modifier and Type Method Description private static void
addGameTestMarker(ServerWorld world, BlockPos pos, String message)
private static ItemStack
createBookWithText(String text, boolean required, String output)
private static void
createTestOutputLectern(GameTest test, String output)
protected static void
failTest(GameTest test, Throwable output)
protected static void
finishFailedTest(GameTest test, Throwable output)
private static void
finishPassedTest(GameTest test, String output)
private void
init()
void
onFailed(GameTest test)
void
onPassed(GameTest test)
void
onStarted(GameTest test)
static void
passTest(GameTest test, String output)
protected static void
sendMessageToAllPlayers(ServerWorld world, Formatting formatting, String message)
protected static void
visualizeTest(GameTest test, Block block)
-
Field Details
-
test
- Mappings:
Namespace Name Mixin selector official c
Lmc;c:Llq;
intermediary field_27810
Lnet/minecraft/class_5624;field_27810:Lnet/minecraft/class_4517;
named test
Lnet/minecraft/test/StructureTestListener;test:Lnet/minecraft/test/GameTest;
-
testManager
- Mappings:
Namespace Name Mixin selector official d
Lmc;d:Llw;
intermediary field_27811
Lnet/minecraft/class_5624;field_27811:Lnet/minecraft/class_4521;
named testManager
Lnet/minecraft/test/StructureTestListener;testManager:Lnet/minecraft/test/TestManager;
-
pos
- Mappings:
Namespace Name Mixin selector official e
Lmc;e:Lfx;
intermediary field_27812
Lnet/minecraft/class_5624;field_27812:Lnet/minecraft/class_2338;
named pos
Lnet/minecraft/test/StructureTestListener;pos:Lnet/minecraft/util/math/BlockPos;
-
attempt
int attempt- Mappings:
Namespace Name Mixin selector official a
Lmc;a:I
intermediary field_27808
Lnet/minecraft/class_5624;field_27808:I
named attempt
Lnet/minecraft/test/StructureTestListener;attempt:I
-
successes
int successes- Mappings:
Namespace Name Mixin selector official b
Lmc;b:I
intermediary field_27809
Lnet/minecraft/class_5624;field_27809:I
named successes
Lnet/minecraft/test/StructureTestListener;successes:I
-
-
Constructor Details
-
StructureTestListener
- Mappings:
Namespace Name Mixin selector official <init>
Lmc;<init>(Llq;Llw;Lfx;)V
intermediary <init>
Lnet/minecraft/class_5624;<init>(Lnet/minecraft/class_4517;Lnet/minecraft/class_4521;Lnet/minecraft/class_2338;)V
named <init>
Lnet/minecraft/test/StructureTestListener;<init>(Lnet/minecraft/test/GameTest;Lnet/minecraft/test/TestManager;Lnet/minecraft/util/math/BlockPos;)V
-
-
Method Details
-
onStarted
- Specified by:
onStarted
in interfaceTestListener
- Mappings:
Namespace Name Mixin selector official a
Llr;a(Llq;)V
intermediary method_22188
Lnet/minecraft/class_4518;method_22188(Lnet/minecraft/class_4517;)V
named onStarted
Lnet/minecraft/test/TestListener;onStarted(Lnet/minecraft/test/GameTest;)V
-
onPassed
- Specified by:
onPassed
in interfaceTestListener
- Mappings:
Namespace Name Mixin selector official b
Llr;b(Llq;)V
intermediary method_33317
Lnet/minecraft/class_4518;method_33317(Lnet/minecraft/class_4517;)V
named onPassed
Lnet/minecraft/test/TestListener;onPassed(Lnet/minecraft/test/GameTest;)V
-
onFailed
- Specified by:
onFailed
in interfaceTestListener
- Mappings:
Namespace Name Mixin selector official c
Llr;c(Llq;)V
intermediary method_22190
Lnet/minecraft/class_4518;method_22190(Lnet/minecraft/class_4517;)V
named onFailed
Lnet/minecraft/test/TestListener;onFailed(Lnet/minecraft/test/GameTest;)V
-
passTest
- Mappings:
Namespace Name Mixin selector official a
Lmc;a(Llq;Ljava/lang/String;)V
intermediary method_33320
Lnet/minecraft/class_5624;method_33320(Lnet/minecraft/class_4517;Ljava/lang/String;)V
named passTest
Lnet/minecraft/test/StructureTestListener;passTest(Lnet/minecraft/test/GameTest;Ljava/lang/String;)V
-
finishPassedTest
- Mappings:
Namespace Name Mixin selector official b
Lmc;b(Llq;Ljava/lang/String;)V
intermediary method_33321
Lnet/minecraft/class_5624;method_33321(Lnet/minecraft/class_4517;Ljava/lang/String;)V
named finishPassedTest
Lnet/minecraft/test/StructureTestListener;finishPassedTest(Lnet/minecraft/test/GameTest;Ljava/lang/String;)V
-
failTest
- Mappings:
Namespace Name Mixin selector official a
Lmc;a(Llq;Ljava/lang/Throwable;)V
intermediary method_32254
Lnet/minecraft/class_5624;method_32254(Lnet/minecraft/class_4517;Ljava/lang/Throwable;)V
named failTest
Lnet/minecraft/test/StructureTestListener;failTest(Lnet/minecraft/test/GameTest;Ljava/lang/Throwable;)V
-
finishFailedTest
- Mappings:
Namespace Name Mixin selector official b
Lmc;b(Llq;Ljava/lang/Throwable;)V
intermediary method_32255
Lnet/minecraft/class_5624;method_32255(Lnet/minecraft/class_4517;Ljava/lang/Throwable;)V
named finishFailedTest
Lnet/minecraft/test/StructureTestListener;finishFailedTest(Lnet/minecraft/test/GameTest;Ljava/lang/Throwable;)V
-
init
private void init()- Mappings:
Namespace Name Mixin selector official a
Lmc;a()V
intermediary method_32246
Lnet/minecraft/class_5624;method_32246()V
named init
Lnet/minecraft/test/StructureTestListener;init()V
-
visualizeTest
- Mappings:
Namespace Name Mixin selector official a
Lmc;a(Llq;Lbwu;)V
intermediary method_32253
Lnet/minecraft/class_5624;method_32253(Lnet/minecraft/class_4517;Lnet/minecraft/class_2248;)V
named visualizeTest
Lnet/minecraft/test/StructureTestListener;visualizeTest(Lnet/minecraft/test/GameTest;Lnet/minecraft/block/Block;)V
-
createTestOutputLectern
- Mappings:
Namespace Name Mixin selector official c
Lmc;c(Llq;Ljava/lang/String;)V
intermediary method_32256
Lnet/minecraft/class_5624;method_32256(Lnet/minecraft/class_4517;Ljava/lang/String;)V
named createTestOutputLectern
Lnet/minecraft/test/StructureTestListener;createTestOutputLectern(Lnet/minecraft/test/GameTest;Ljava/lang/String;)V
-
createBookWithText
- Mappings:
Namespace Name Mixin selector official a
Lmc;a(Ljava/lang/String;ZLjava/lang/String;)Lbnv;
intermediary method_32251
Lnet/minecraft/class_5624;method_32251(Ljava/lang/String;ZLjava/lang/String;)Lnet/minecraft/class_1799;
named createBookWithText
Lnet/minecraft/test/StructureTestListener;createBookWithText(Ljava/lang/String;ZLjava/lang/String;)Lnet/minecraft/item/ItemStack;
-
sendMessageToAllPlayers
protected static void sendMessageToAllPlayers(ServerWorld world, Formatting formatting, String message)- Mappings:
Namespace Name Mixin selector official a
Lmc;a(Laav;Lk;Ljava/lang/String;)V
intermediary method_32248
Lnet/minecraft/class_5624;method_32248(Lnet/minecraft/class_3218;Lnet/minecraft/class_124;Ljava/lang/String;)V
named sendMessageToAllPlayers
Lnet/minecraft/test/StructureTestListener;sendMessageToAllPlayers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/Formatting;Ljava/lang/String;)V
-
addGameTestMarker
- Mappings:
Namespace Name Mixin selector official a
Lmc;a(Laav;Lfx;Ljava/lang/String;)V
intermediary method_32247
Lnet/minecraft/class_5624;method_32247(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/lang/String;)V
named addGameTestMarker
Lnet/minecraft/test/StructureTestListener;addGameTestMarker(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/lang/String;)V
-