Class RenderElement
java.lang.Object
net.minecraftforge.fml.earlydisplay.RenderElement
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
(package private) static interface
static final record
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private final SimpleBufferBuilder
(package private) static int
(package private) static final int
private final RenderElement.Renderer
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RenderElement
anvil
(SimpleFont font) private static RenderElement.Renderer
barRenderer
(int cnt, int alpha, SimpleFont font, ProgressMeter pm, RenderElement.DisplayContext context) static float
clamp
(float num, float min, float max) static int
clamp
(int num, int min, int max) static RenderElement
forgeVersionOverlay
(SimpleFont font, String version) static int
hsvToRGB
(float hue, float saturation, float value) private static float[]
indeterminateBar
(int frame, boolean isActive) private static RenderElement.Initializer
initializeText
(SimpleFont font, RenderElement.TextGenerator textGenerator) private static RenderElement.Initializer
initializeTexture
(String textureFileName, int size, int textureNumber, RenderElement.TextureRenderer positionAndColour) static RenderElement
logMessageOverlay
(SimpleFont font) private static void
memoryInfo
(SimpleFont font, SimpleBufferBuilder buffer, RenderElement.DisplayContext context, int frameNumber) static RenderElement
mojang
(int textureId, int frameStart) static RenderElement
monag()
static RenderElement
performanceBar
(SimpleFont font) static RenderElement.Renderer
progressBar
(RenderElement.BarPosition position, RenderElement.ColourFunction colourFunction, RenderElement.ProgressDisplay progressDisplay) static RenderElement
progressBars
(SimpleFont font) boolean
render
(RenderElement.DisplayContext ctx, int count) private static void
renderText
(SimpleFont font, RenderElement.TextGenerator textGenerator, SimpleBufferBuilder bb, RenderElement.DisplayContext context) private static void
renderTexture
(SimpleBufferBuilder bb, RenderElement.DisplayContext context, int frame, int[] size, RenderElement.TextureRenderer positionAndColour) void
retire
(int frame) static RenderElement
squir()
private static void
startupLogMessages
(SimpleBufferBuilder bb, SimpleFont font, RenderElement.DisplayContext context) static void
startupProgressBars
(SimpleFont font, SimpleBufferBuilder buffer, RenderElement.DisplayContext context, int frameNumber) private static RenderElement.TextGenerator
-
Field Details
-
INDEX_TEXTURE_OFFSET
static final int INDEX_TEXTURE_OFFSET- See Also:
-
bb
-
renderer
-
globalAlpha
static int globalAlpha -
retireCount
private int retireCount -
BAR_HEIGHT
private static final int BAR_HEIGHT- See Also:
-
BAR_WIDTH
private static final int BAR_WIDTH- See Also:
-
-
Constructor Details
-
RenderElement
-
-
Method Details
-
render
-
retire
public void retire(int frame) -
startupLogMessages
private static void startupLogMessages(SimpleBufferBuilder bb, SimpleFont font, RenderElement.DisplayContext context) -
monag
-
mojang
-
logMessageOverlay
-
forgeVersionOverlay
-
squir
-
anvil
-
progressBars
-
performanceBar
-
startupProgressBars
public static void startupProgressBars(SimpleFont font, SimpleBufferBuilder buffer, RenderElement.DisplayContext context, int frameNumber) -
barRenderer
private static RenderElement.Renderer barRenderer(int cnt, int alpha, SimpleFont font, ProgressMeter pm, RenderElement.DisplayContext context) -
indeterminateBar
private static float[] indeterminateBar(int frame, boolean isActive) -
memoryInfo
private static void memoryInfo(SimpleFont font, SimpleBufferBuilder buffer, RenderElement.DisplayContext context, int frameNumber) -
progressBar
public static RenderElement.Renderer progressBar(RenderElement.BarPosition position, RenderElement.ColourFunction colourFunction, RenderElement.ProgressDisplay progressDisplay) -
initializeText
private static RenderElement.Initializer initializeText(SimpleFont font, RenderElement.TextGenerator textGenerator) -
renderText
private static void renderText(SimpleFont font, RenderElement.TextGenerator textGenerator, SimpleBufferBuilder bb, RenderElement.DisplayContext context) -
text
-
initializeTexture
private static RenderElement.Initializer initializeTexture(String textureFileName, int size, int textureNumber, RenderElement.TextureRenderer positionAndColour) -
renderTexture
private static void renderTexture(SimpleBufferBuilder bb, RenderElement.DisplayContext context, int frame, int[] size, RenderElement.TextureRenderer positionAndColour) -
clamp
public static float clamp(float num, float min, float max) -
clamp
public static int clamp(int num, int min, int max) -
hsvToRGB
public static int hsvToRGB(float hue, float saturation, float value)
-