Class TestsOverlay
java.lang.Object
net.neoforged.testframework.client.TestsOverlay
- All Implemented Interfaces:
IGuiOverlay
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationprivate final BooleanSupplierprivate final it.unimi.dsi.fastutil.objects.Object2FloatMap<Test>(package private) static final Map<Test.Result,ResourceLocation> private final MutableTestFrameworkstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidblitTiled(GuiGraphics pose, int x, int y, int width, int height, int u, int v, int textureDrawWidth, int textureDrawHeight, int textureWidth, int textureHeight, ResourceLocation texture) voidrender(ExtendedGui gui, GuiGraphics poseStack, float partialTick, int screenWidth, int screenHeight) private TestsOverlay.XYrenderTest(ExtendedGui gui, Font font, Test test, GuiGraphics stack, int maxWidth, int x, int y, int colour, List<Runnable> rendering) private static voidrenderTilledTexture(GuiGraphics pose, ResourceLocation texture, int x, int y, int width, int height, int borderWidth, int borderHeight, int textureWidth, int textureHeight, float alpha) (package private) static MutableComponentstatusColoured(Component input, Test.Status status) private RunnablewithXY(int x, int y, TestsOverlay.IntBiConsumer consumer)
-
Field Details
-
MAX_DISPLAYED
public static final int MAX_DISPLAYED- See Also:
-
BG_TEXTURE
-
impl
-
enabled
-
fading
-
lastRenderedTests
-
ICON_BY_RESULT
-
-
Constructor Details
-
TestsOverlay
-
-
Method Details
-
render
public void render(ExtendedGui gui, GuiGraphics poseStack, float partialTick, int screenWidth, int screenHeight) - Specified by:
renderin interfaceIGuiOverlay
-
renderTest
private TestsOverlay.XY renderTest(ExtendedGui gui, Font font, Test test, GuiGraphics stack, int maxWidth, int x, int y, int colour, List<Runnable> rendering) -
withXY
-
statusColoured
-
renderTilledTexture
private static void renderTilledTexture(GuiGraphics pose, ResourceLocation texture, int x, int y, int width, int height, int borderWidth, int borderHeight, int textureWidth, int textureHeight, float alpha) -
blitTiled
private static void blitTiled(GuiGraphics pose, int x, int y, int width, int height, int u, int v, int textureDrawWidth, int textureDrawHeight, int textureWidth, int textureHeight, ResourceLocation texture)
-