Interface SplicingTableIotaRendererProvider
public interface SplicingTableIotaRendererProvider
A factory for
Every method in this interface is called every time the splicing table changes which iotas are currently visible, so don't do anything too laggy in here.
SplicingTableIotaRenderer instances.
Every method in this interface is called every time the splicing table changes which iotas are currently visible, so don't do anything too laggy in here.
-
Method Summary
Modifier and TypeMethodDescription@Nullable SplicingTableIotaRenderercreateRenderer(@NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull SplicingTableIotaClientView iota, int x, int y) Creates and returns a newSplicingTableIotaRendererfor the provided iota.default @NotNull net.minecraft.client.gui.components.TooltipcreateTooltip(@NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull SplicingTableIotaClientView iota) Creates and returns a newTooltipfor the provided iota.default @NotNull SplicingTableIotaBackgroundTypegetBackgroundType(@NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull SplicingTableIotaClientView iota) Returns the background type for this renderer.default @NotNull SplicingTableIotaTooltipBuildergetTooltipBuilder(@NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull SplicingTableIotaClientView iota) Creates and returns a newSplicingTableIotaTooltipBuilderfor the provided iota.
-
Method Details
-
createRenderer
@Nullable @Nullable SplicingTableIotaRenderer createRenderer(@NotNull @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull @NotNull SplicingTableIotaClientView iota, int x, int y) Creates and returns a newSplicingTableIotaRendererfor the provided iota.
May return null if unable to create a renderer for the given iota; in that case, the default renderer will be used instead. -
createTooltip
@NotNull default @NotNull net.minecraft.client.gui.components.Tooltip createTooltip(@NotNull @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull @NotNull SplicingTableIotaClientView iota) Creates and returns a newTooltipfor the provided iota.
In most cases, you'll likely want to overridegetTooltipBuilder(at.petrak.hexcasting.api.casting.iota.IotaType<?>, gay.object.hexdebug.api.splicing.SplicingTableIotaClientView)instead. -
getTooltipBuilder
@NotNull default @NotNull SplicingTableIotaTooltipBuilder getTooltipBuilder(@NotNull @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull @NotNull SplicingTableIotaClientView iota) Creates and returns a newSplicingTableIotaTooltipBuilderfor the provided iota.
If you want to provide a tooltip directly instead of using this builder, you can overridecreateTooltip(at.petrak.hexcasting.api.casting.iota.IotaType<?>, gay.object.hexdebug.api.splicing.SplicingTableIotaClientView)instead. -
getBackgroundType
@NotNull default @NotNull SplicingTableIotaBackgroundType getBackgroundType(@NotNull @NotNull at.petrak.hexcasting.api.casting.iota.IotaType<?> type, @NotNull @NotNull SplicingTableIotaClientView iota) Returns the background type for this renderer.
-