Class Label
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.AbstractWidget
com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
com.simibubi.create.foundation.gui.widget.Label
- All Implemented Interfaces:
TickableGuiEventListener,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Widget,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected net.minecraft.client.gui.Fontprotected booleannet.minecraft.network.chat.ComponentFields inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
onClick, toolTip, wasHovered, zFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolored(int color) voidrenderButton(com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float partialTicks) voidsetTextAndTrim(net.minecraft.network.chat.Component newText, boolean trimFront, int maxWidthPx) withSuffix(String s) Methods inherited from class com.simibubi.create.foundation.gui.widget.AbstractSimiWidget
afterRender, atZLevel, beforeRender, getToolTip, onClick, render, runCallback, tick, updateNarration, withCallback, withCallbackMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
changeFocus, clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getWidth, getYImage, isActive, isFocused, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, onDrag, onFocusedChanged, onRelease, playDownSound, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth, wrapDefaultNarrationMessageMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
changeFocus, charTyped, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
text
public net.minecraft.network.chat.Component text -
suffix
-
hasShadow
protected boolean hasShadow -
color
protected int color -
font
protected net.minecraft.client.gui.Font font
-
-
Constructor Details
-
Label
public Label(int x, int y, net.minecraft.network.chat.Component text)
-
-
Method Details
-
colored
-
withShadow
-
withSuffix
-
setTextAndTrim
public void setTextAndTrim(net.minecraft.network.chat.Component newText, boolean trimFront, int maxWidthPx) -
renderButton
public void renderButton(@Nonnull com.mojang.blaze3d.vertex.PoseStack matrixStack, int mouseX, int mouseY, float partialTicks) - Overrides:
renderButtonin classAbstractSimiWidget
-