Class HudStrategy
java.lang.Object
cromveil.combatnumbers.client.render.HudStrategy
- All Implemented Interfaces:
Strategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface Strategy
Strategy.GlyphPlacement -
Constructor Summary
ConstructorsConstructorDescriptionHudStrategy(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.renderer.state.level.CameraRenderState cam) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3camPos()Camera position used by the shared driver for distance-based fade and scaling.booleancull(FloatingText text) Per-text visibility test.voiddraw(FloatingText text, int charIndex, boolean perChar, Strategy.GlyphPlacement placement) Emit a single glyph (the whole text, or one staggered character).
-
Constructor Details
-
HudStrategy
public HudStrategy(net.minecraft.client.gui.GuiGraphicsExtractor graphics, net.minecraft.client.renderer.state.level.CameraRenderState cam)
-
-
Method Details
-
camPos
-
cull
Description copied from interface:StrategyPer-text visibility test. Implementations may stash strategy-specific data (e.g. projected screen coordinates) as a side effect. -
draw
public void draw(FloatingText text, int charIndex, boolean perChar, Strategy.GlyphPlacement placement) Description copied from interface:StrategyEmit a single glyph (the whole text, or one staggered character).
-