Class PlayerHead

java.lang.Object
me.hackware.api.gui.layout.UIElement<PlayerHead>
me.hackware.api.gui.layout.PlayerHead

public class PlayerHead extends UIElement<PlayerHead>
A UI element that renders a player's face (head) like in the tab list. Accepts a Supplier so the skin can load asynchronously in the background.
  • Constructor Details

    • PlayerHead

      public PlayerHead(Supplier<net.minecraft.world.entity.player.PlayerSkin> skinSupplier)
    • PlayerHead

      public PlayerHead(net.minecraft.world.entity.player.PlayerSkin skin)
  • Method Details

    • faceSize

      public PlayerHead faceSize(int size)
    • measure

      public void measure(net.minecraft.client.gui.Font font)
      Description copied from class: UIElement
      Measure this element's intrinsic size. After calling, computedWidth and computedHeight are set.
      Specified by:
      measure in class UIElement<PlayerHead>
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, net.minecraft.client.gui.Font font)
      Description copied from class: UIElement
      Render this element using its computed layout coordinates.
      Specified by:
      render in class UIElement<PlayerHead>