Class UnicodeGlyphButton
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.widget.Widget
net.minecraft.client.gui.widget.button.AbstractButton
net.minecraft.client.gui.widget.button.Button
net.minecraftforge.fml.client.gui.widget.ExtendedButton
net.minecraftforge.fml.client.gui.widget.UnicodeGlyphButton
- All Implemented Interfaces:
IGuiEventListener
,IRenderable
This class provides a button that shows a string glyph at the beginning. The glyph can be scaled using the glyphScale parameter.
- Author:
- bspkrs
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.button.Button
Button.IPressable, Button.ITooltip
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.button.Button
NO_TOOLTIP, onPress, onTooltip
Fields inherited from class net.minecraft.client.gui.widget.Widget
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ConstructorDescriptionUnicodeGlyphButton
(int xPos, int yPos, int width, int height, ITextComponent displayString, String glyph, float glyphScale, Button.IPressable handler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(MatrixStack mStack, int mouseX, int mouseY, float partial) Methods inherited from class net.minecraftforge.fml.client.gui.widget.ExtendedButton
renderButton
Methods inherited from class net.minecraft.client.gui.widget.button.Button
onPress, renderToolTip
Methods inherited from class net.minecraft.client.gui.widget.button.AbstractButton
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.Widget
changeFocus, clearFGColor, clicked, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
charTyped, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
glyph
-
glyphScale
public float glyphScale
-
-
Constructor Details
-
UnicodeGlyphButton
public UnicodeGlyphButton(int xPos, int yPos, int width, int height, ITextComponent displayString, String glyph, float glyphScale, Button.IPressable handler)
-
-
Method Details
-
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classWidget
-