Class TooltipElementSpellList
java.lang.Object
com.binaris.wizardry.client.gui.elements.TooltipElement
com.binaris.wizardry.client.gui.elements.TooltipElementSpellList
-
Field Summary
Fields inherited from class com.binaris.wizardry.client.gui.elements.TooltipElement
spaceAfter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY) Draws the background layer of this element.intdrawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY) Renders the background layer for this element and its children.protected voiddrawForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY) Draws the foreground layer of this element.protected intgetHeight(net.minecraft.world.item.ItemStack stack) Returns the vertical height of this element (excluding children or spacing).protected booleanisVisible(net.minecraft.world.item.ItemStack stack) Whether this tooltip element should be visible for the given item stack.Methods inherited from class com.binaris.wizardry.client.gui.elements.TooltipElement
drawForegroundLayer, getTotalHeight
-
Constructor Details
-
TooltipElementSpellList
-
-
Method Details
-
isVisible
protected boolean isVisible(net.minecraft.world.item.ItemStack stack) Description copied from class:TooltipElementWhether this tooltip element should be visible for the given item stack. Used to conditionally render elements based on item tags or state.- Specified by:
isVisiblein classTooltipElement
-
drawBackgroundLayer
public int drawBackgroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY) Description copied from class:TooltipElementRenders the background layer for this element and its children. This is where you should draw boxes, icons, and backgrounds before text.- Overrides:
drawBackgroundLayerin classTooltipElement
-
getHeight
protected int getHeight(net.minecraft.world.item.ItemStack stack) Description copied from class:TooltipElementReturns the vertical height of this element (excluding children or spacing).- Specified by:
getHeightin classTooltipElement
-
drawBackground
protected void drawBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, float partialTicks, int mouseX, int mouseY) Description copied from class:TooltipElementDraws the background layer of this element.- Specified by:
drawBackgroundin classTooltipElement
-
drawForeground
protected void drawForeground(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y, net.minecraft.world.item.ItemStack stack, int mouseX, int mouseY) Description copied from class:TooltipElementDraws the foreground layer of this element.- Specified by:
drawForegroundin classTooltipElement
-