Class ListQuestEditor
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
com.pixelmonmod.pixelmon.quests.client.editor.ui.ListQuestEditor
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.Renderable
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.layouts.LayoutElement
,net.minecraft.client.gui.narration.NarratableEntry
,net.minecraft.client.gui.narration.NarrationSupplier
public class ListQuestEditor
extends net.minecraft.client.gui.components.AbstractWidget
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionint
int
Color Configurationint
boolean
boolean
int
boolean
boolean
boolean
int
int
int
int
int
int
static final int
int
static final int
int
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, focused, hoverOrFocusedStartTime, isHovered, message, MIN_SCROLL_PERIOD, packedFGColor, PERIOD_PER_SCROLLED_PIXEL, tabOrderGroup, tooltip, tooltipMsDelay, UNSET_FG_COLOR, visible, wasHoveredOrFocused, x, y
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionListQuestEditor
(net.minecraft.client.gui.Font fontRenderer, int x, int y, int w, int lines) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
drawBackground
(net.minecraft.client.gui.GuiGraphics matrix) void
drawText
(net.minecraft.client.gui.GuiGraphics matrix) mouseClicked
(double mouseX, double mouseY, int mouseButton, int offsetY) protected void
renderWidget
(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_) void
void
scrollUp()
void
selectQuest
(int i) void
setEnabled
(boolean enable) void
setFocused
(boolean focus) boolean
protected void
updateWidgetNarration
(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
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.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
X_OFFSET
public static final int X_OFFSET- See Also:
-
Y_OFFSET
public static final int Y_OFFSET- See Also:
-
xPos
public int xPos -
yPos
public int yPos -
width
public int width -
height
public int height -
drawBackground
public boolean drawBackground -
drawBorder
public boolean drawBorder -
isEnabled
public boolean isEnabled -
isFocused
public boolean isFocused -
borderColor
public int borderColorColor Configuration -
backgroundColor
public int backgroundColor -
selectedLineColor
public int selectedLineColor -
textColor
public int textColor -
selectedTextColor
public int selectedTextColor -
displayLines
public int displayLines -
lineHeight
public int lineHeight -
lines
-
startLine
public int startLine -
selectedQuest
-
highlightSelectedLine
public boolean highlightSelectedLine
-
-
Constructor Details
-
ListQuestEditor
public ListQuestEditor(net.minecraft.client.gui.Font fontRenderer, int x, int y, int w, int lines)
-
-
Method Details
-
sort
-
drawBackground
public void drawBackground(net.minecraft.client.gui.GuiGraphics matrix) -
drawText
public void drawText(net.minecraft.client.gui.GuiGraphics matrix) -
mouseClicked
-
setEnabled
public void setEnabled(boolean enable) -
renderWidget
protected void renderWidget(net.minecraft.client.gui.GuiGraphics p_282139_, int p_268034_, int p_268009_, float p_268085_) - Specified by:
renderWidget
in classnet.minecraft.client.gui.components.AbstractWidget
-
setFocused
public void setFocused(boolean focus) - Specified by:
setFocused
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
setFocused
in classnet.minecraft.client.gui.components.AbstractWidget
-
updateWidgetNarration
protected void updateWidgetNarration(net.minecraft.client.gui.narration.NarrationElementOutput p_259858_) - Specified by:
updateWidgetNarration
in classnet.minecraft.client.gui.components.AbstractWidget
-
addLine
-
selectQuest
public void selectQuest(int i) -
scrollUp
public void scrollUp() -
scrollDown
public void scrollDown()
-