Class ScreenStrategy

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

public final class ScreenStrategy extends BillboardStrategy
Fixed view-space depth, was actually easier to implement than world strategy, but still 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