Class SplicingTableIotaRenderer

java.lang.Object
gay.object.hexdebug.api.client.splicing.SplicingTableIotaRenderer

public abstract class SplicingTableIotaRenderer extends Object
  • Constructor Details

    • SplicingTableIotaRenderer

      public SplicingTableIotaRenderer(@NotNull @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull @NotNull SplicingTableIotaClientView iota, int x, int y)
  • Method Details

    • getType

      @NotNull public final @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> getType()
    • getIota

      @NotNull public final @NotNull SplicingTableIotaClientView getIota()
    • getX

      public final int getX()
    • setX

      @OverrideOnly public void setX(int x)
    • getY

      public final int getY()
    • setY

      @OverrideOnly public void setY(int y)
    • getTooltip

      @Nullable public @Nullable net.minecraft.client.gui.components.Tooltip getTooltip()
      Returns the current tooltip for this renderer. This is called every frame, immediately after render(net.minecraft.client.gui.GuiGraphics, int, int, float).
    • setTooltip

      public void setTooltip(@Nullable @Nullable net.minecraft.client.gui.components.Tooltip tooltip)
      Sets the cached tooltip for this renderer. By default, this is called only when the renderer is moved to a new position, receiving the value returned by createTooltip().
    • render

      public abstract void render(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Renders one frame of this iota.
    • getBackgroundType

      @NotNull public @NotNull SplicingTableIotaBackgroundType getBackgroundType()
      Returns the background type for this renderer.
    • createTooltip

      @NotNull public @NotNull net.minecraft.client.gui.components.Tooltip createTooltip()
      Creates and returns a new Tooltip for the provided iota. By default, this is called only when the renderer is moved to a new position.
      In most cases, you'll likely want to override buildTooltip() instead.
    • buildTooltip

      @NotNull protected @NotNull SplicingTableIotaTooltipBuilder buildTooltip()
      Creates and returns a new SplicingTableIotaTooltipBuilder for the provided iota.
      If you want to provide a tooltip directly instead of using this builder, you can override createTooltip() instead.