Class SplicingTableIotaRenderer
java.lang.Object
gay.object.hexdebug.api.client.splicing.SplicingTableIotaRenderer
-
Constructor Summary
ConstructorsConstructorDescriptionSplicingTableIotaRenderer(@NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull SplicingTableIotaClientView iota, int x, int y) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull SplicingTableIotaTooltipBuilderCreates and returns a newSplicingTableIotaTooltipBuilderfor the provided iota.@NotNull net.minecraft.client.gui.components.TooltipCreates and returns a newTooltipfor the provided iota.@NotNull SplicingTableIotaBackgroundTypeReturns the background type for this renderer.final @NotNull SplicingTableIotaClientViewgetIota()@Nullable net.minecraft.client.gui.components.TooltipReturns the current tooltip for this renderer.final @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?>getType()final intgetX()final intgetY()abstract voidrender(@NotNull net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) Renders one frame of this iota.voidsetTooltip(@Nullable net.minecraft.client.gui.components.Tooltip tooltip) Sets the cached tooltip for this renderer.voidsetX(int x) voidsetY(int y)
-
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
-
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 afterrender(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 bycreateTooltip(). -
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
Returns the background type for this renderer. -
createTooltip
@NotNull public @NotNull net.minecraft.client.gui.components.Tooltip createTooltip()Creates and returns a newTooltipfor 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 overridebuildTooltip()instead. -
buildTooltip
Creates and returns a newSplicingTableIotaTooltipBuilderfor the provided iota.
If you want to provide a tooltip directly instead of using this builder, you can overridecreateTooltip()instead.
-