Class TooltipElementSpellEntry
java.lang.Object
com.binaris.wizardry.client.gui.elements.TooltipElement
com.binaris.wizardry.client.gui.elements.TooltipElementText
com.binaris.wizardry.client.gui.elements.TooltipElementSpellEntry
-
Nested Class Summary
Nested classes/interfaces inherited from class com.binaris.wizardry.client.gui.elements.TooltipElementText
TooltipElementText.TooltipElementItemName, TooltipElementText.TooltipElementManaReadout -
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.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 intgetColour(net.minecraft.world.item.ItemStack stack) protected net.minecraft.network.chat.ComponentgetText(net.minecraft.world.item.ItemStack stack) 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.TooltipElementText
getFontRenderer, getHeight, getStyleMethods inherited from class com.binaris.wizardry.client.gui.elements.TooltipElement
drawBackgroundLayer, drawForegroundLayer, getTotalHeight
-
Constructor Details
-
TooltipElementSpellEntry
-
-
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.- Overrides:
isVisiblein classTooltipElementText
-
getColour
protected int getColour(net.minecraft.world.item.ItemStack stack) - Overrides:
getColourin classTooltipElementText
-
getText
protected net.minecraft.network.chat.Component getText(net.minecraft.world.item.ItemStack stack) - Overrides:
getTextin classTooltipElementText
-
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.- Overrides:
drawBackgroundin classTooltipElementText
-
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.- Overrides:
drawForegroundin classTooltipElementText
-