Class TestsOverlay
java.lang.Object
net.neoforged.testframework.client.TestsOverlay
- All Implemented Interfaces:
LayeredDraw.Layer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResourceLocation
private final BooleanSupplier
private final it.unimi.dsi.fastutil.objects.Object2FloatMap
<Test> (package private) static final Map
<Test.Result, ResourceLocation> private final MutableTestFramework
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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) void
render
(GuiGraphics poseStack, DeltaTracker deltaTracker) private TestsOverlay.XY
renderTest
(Font font, Test test, GuiGraphics stack, int maxWidth, int x, int y, int colour, List<Runnable> rendering) 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) (package private) static MutableComponent
statusColoured
(Component input, Test.Status status) private Runnable
withXY
(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
- Specified by:
render
in interfaceLayeredDraw.Layer
-
renderTest
private TestsOverlay.XY renderTest(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)
-