Class WorldStrategy
java.lang.Object
cromveil.combatnumbers.client.render.BillboardStrategy
cromveil.combatnumbers.client.render.WorldStrategy
- All Implemented Interfaces:
Strategy
Renders on true world position, was my first implementation and probably
wasn't the best decision. Suffers from translucent objects like water being
drawn over it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Strategy
Strategy.GlyphPlacement -
Field Summary
Fields inherited from class BillboardStrategy
cam, collector, ps -
Method Summary
Modifier and TypeMethodDescriptionprotected floatanchor(net.minecraft.world.phys.Vec3 worldPos) Translate the pose to this text's anchor and return the GUI-pixel-to-world factor used for the subsequent offset and scale steps.Methods inherited from class BillboardStrategy
camPos, create, cull, draw
-
Method Details
-
anchor
protected float anchor(net.minecraft.world.phys.Vec3 worldPos) Description copied from class:BillboardStrategyTranslate the pose to this text's anchor and return the GUI-pixel-to-world factor used for the subsequent offset and scale steps.- Specified by:
anchorin classBillboardStrategy
-