Class WorldStrategy

java.lang.Object
cromveil.combatnumbers.client.render.BillboardStrategy
cromveil.combatnumbers.client.render.WorldStrategy
All Implemented Interfaces:
Strategy

public final class WorldStrategy extends BillboardStrategy
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.
  • Method Details

    • anchor

      protected float anchor(net.minecraft.world.phys.Vec3 worldPos)
      Description copied from class: BillboardStrategy
      Translate 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:
      anchor in class BillboardStrategy