public class GuiPageButtonList extends GuiListExtended
Modifier and Type | Class and Description |
---|---|
static class |
GuiPageButtonList.EditBoxEntry |
static class |
GuiPageButtonList.GuiButtonEntry |
static class |
GuiPageButtonList.GuiEntry |
static class |
GuiPageButtonList.GuiLabelEntry |
static class |
GuiPageButtonList.GuiListEntry |
static interface |
GuiPageButtonList.GuiResponder |
static class |
GuiPageButtonList.GuiSlideEntry |
GuiListExtended.IGuiListEntry
Modifier and Type | Field and Description |
---|---|
private IntHashMap<Gui> |
componentMap |
private java.util.List<GuiTextField> |
editBoxes |
private java.util.List<GuiPageButtonList.GuiEntry> |
entries |
private Gui |
focusedControl |
private int |
page |
private GuiPageButtonList.GuiListEntry[][] |
pages |
private GuiPageButtonList.GuiResponder |
responder |
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mc, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, visible, width
Constructor and Description |
---|
GuiPageButtonList(Minecraft mcIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int slotHeightIn,
GuiPageButtonList.GuiResponder p_i45536_7_,
GuiPageButtonList.GuiListEntry[]... p_i45536_8_) |
Modifier and Type | Method and Description |
---|---|
private GuiListButton |
createButton(int p_178065_1_,
int p_178065_2_,
GuiPageButtonList.GuiButtonEntry p_178065_3_) |
private Gui |
createEntry(GuiPageButtonList.GuiListEntry p_178058_1_,
int p_178058_2_,
boolean p_178058_3_) |
private GuiLabel |
createLabel(int p_178063_1_,
int p_178063_2_,
GuiPageButtonList.GuiLabelEntry p_178063_3_,
boolean p_178063_4_) |
private GuiSlider |
createSlider(int p_178067_1_,
int p_178067_2_,
GuiPageButtonList.GuiSlideEntry p_178067_3_) |
private GuiTextField |
createTextField(int p_178068_1_,
int p_178068_2_,
GuiPageButtonList.EditBoxEntry p_178068_3_) |
Gui |
getComponent(int p_178061_1_) |
Gui |
getFocusedControl() |
GuiPageButtonList.GuiEntry |
getListEntry(int index) |
int |
getListWidth() |
int |
getPage() |
int |
getPageCount() |
protected int |
getScrollBarX() |
int |
getSize() |
private void |
markVisibility(int p_178060_1_,
int p_178060_2_) |
boolean |
mouseClicked(int mouseX,
int mouseY,
int mouseEvent) |
void |
nextPage() |
void |
onKeyPressed(char p_178062_1_,
int p_178062_2_) |
private void |
populateComponents() |
private void |
populateEntries() |
void |
previousPage() |
void |
setActive(boolean p_181155_1_) |
private void |
setComponentVisibility(Gui p_178066_1_,
boolean p_178066_2_) |
void |
setPage(int p_181156_1_) |
drawBackground, drawSlot, elementClicked, isSelected, mouseReleased, updateItemPos
actionPerformed, bindAmountScrolled, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, getAmountScrolled, getContentHeight, getEnabled, getMaxScroll, getSlotHeight, getSlotIndexFromScreenCoords, handleMouseInput, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, renderDecorations, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeft
private final java.util.List<GuiPageButtonList.GuiEntry> entries
private final IntHashMap<Gui> componentMap
private final java.util.List<GuiTextField> editBoxes
private final GuiPageButtonList.GuiListEntry[][] pages
private int page
private final GuiPageButtonList.GuiResponder responder
private Gui focusedControl
public GuiPageButtonList(Minecraft mcIn, int widthIn, int heightIn, int topIn, int bottomIn, int slotHeightIn, GuiPageButtonList.GuiResponder p_i45536_7_, GuiPageButtonList.GuiListEntry[]... p_i45536_8_)
private void populateComponents()
private void populateEntries()
public void setPage(int p_181156_1_)
public int getPage()
public int getPageCount()
public Gui getFocusedControl()
public void previousPage()
public void nextPage()
public Gui getComponent(int p_178061_1_)
private void markVisibility(int p_178060_1_, int p_178060_2_)
private void setComponentVisibility(Gui p_178066_1_, boolean p_178066_2_)
@Nullable private Gui createEntry(@Nullable GuiPageButtonList.GuiListEntry p_178058_1_, int p_178058_2_, boolean p_178058_3_)
public void setActive(boolean p_181155_1_)
public boolean mouseClicked(int mouseX, int mouseY, int mouseEvent)
mouseClicked
in class GuiListExtended
private GuiSlider createSlider(int p_178067_1_, int p_178067_2_, GuiPageButtonList.GuiSlideEntry p_178067_3_)
private GuiListButton createButton(int p_178065_1_, int p_178065_2_, GuiPageButtonList.GuiButtonEntry p_178065_3_)
private GuiTextField createTextField(int p_178068_1_, int p_178068_2_, GuiPageButtonList.EditBoxEntry p_178068_3_)
private GuiLabel createLabel(int p_178063_1_, int p_178063_2_, GuiPageButtonList.GuiLabelEntry p_178063_3_, boolean p_178063_4_)
public void onKeyPressed(char p_178062_1_, int p_178062_2_)
public GuiPageButtonList.GuiEntry getListEntry(int index)
getListEntry
in class GuiListExtended
public int getListWidth()
getListWidth
in class GuiSlot
protected int getScrollBarX()
getScrollBarX
in class GuiSlot