public abstract class GuiSlot extends GuiEventHandler
| Modifier and Type | Field and Description |
|---|---|
protected double |
amountScrolled |
int |
bottom |
protected boolean |
centerListVertically |
protected boolean |
hasListHeader |
int |
headerPadding |
int |
height |
protected int |
initialClickY |
protected long |
lastClicked |
int |
left |
protected Minecraft |
mc |
int |
right |
protected int |
selectedElement |
protected boolean |
showSelectionBox |
int |
slotHeight |
int |
top |
protected boolean |
visible |
int |
width |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiSlot(Minecraft mcIn,
int width,
int height,
int topIn,
int bottomIn,
int slotHeightIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindAmountScrolled() |
boolean |
charTyped(char p_charTyped_1_,
int p_charTyped_2_) |
protected void |
checkScrollbarClick(double mouseX,
double mouseY,
int button) |
protected void |
clickedHeader(int p_148132_1_,
int p_148132_2_) |
protected abstract void |
drawBackground() |
protected void |
drawContainerBackground(Tessellator tessellator) |
protected void |
drawListHeader(int insideLeft,
int insideTop,
Tessellator tessellatorIn) |
void |
drawScreen(int mouseXIn,
int mouseYIn,
float partialTicks) |
protected void |
drawSelectionBox(int insideLeft,
int insideTop,
int mouseXIn,
int mouseYIn,
float partialTicks) |
protected abstract void |
drawSlot(int slotIndex,
int xPos,
int yPos,
int heightIn,
int mouseXIn,
int mouseYIn,
float partialTicks) |
int |
getAmountScrolled() |
protected java.util.List<? extends IGuiEventListener> |
getChildren() |
protected int |
getContentHeight() |
int |
getEntryAt(double x,
double y) |
int |
getListWidth() |
int |
getMaxScroll() |
protected int |
getScrollBarX() |
protected abstract int |
getSize() |
int |
getSlotHeight() |
boolean |
isMouseInList(double p_195079_1_,
double p_195079_3_) |
protected abstract boolean |
isSelected(int slotIndex) |
boolean |
isVisible() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
protected boolean |
mouseClicked(int index,
int button,
double mouseX,
double mouseY) |
boolean |
mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_) |
boolean |
mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_) |
boolean |
mouseScrolled(double p_mouseScrolled_1_) |
protected void |
overlayBackground(int startY,
int endY,
int startAlpha,
int endAlpha) |
protected void |
renderDecorations(int mouseXIn,
int mouseYIn) |
void |
scrollBy(int amount) |
void |
setDimensions(int widthIn,
int heightIn,
int topIn,
int bottomIn) |
protected void |
setHasListHeader(boolean hasListHeaderIn,
int headerPaddingIn) |
void |
setSelectedEntry(int index) |
void |
setShowSelectionBox(boolean showSelectionBoxIn) |
void |
setSlotXBoundsFromLeft(int leftIn) |
protected void |
updateItemPos(int entryID,
int insideLeft,
int yPos,
float partialTicks) |
focusNext, focusOn, getFocused, setDragging, setFocuseddrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyReleasedcanFocus, focusChangedprotected final Minecraft mc
public int width
public int height
public int top
public int bottom
public int right
public int left
public final int slotHeight
protected boolean centerListVertically
protected int initialClickY
protected double amountScrolled
protected int selectedElement
protected long lastClicked
protected boolean visible
protected boolean showSelectionBox
protected boolean hasListHeader
public int headerPadding
public GuiSlot(Minecraft mcIn, int width, int height, int topIn, int bottomIn, int slotHeightIn)
public void setDimensions(int widthIn,
int heightIn,
int topIn,
int bottomIn)
public void setShowSelectionBox(boolean showSelectionBoxIn)
protected void setHasListHeader(boolean hasListHeaderIn,
int headerPaddingIn)
public boolean isVisible()
protected abstract int getSize()
public void setSelectedEntry(int index)
protected java.util.List<? extends IGuiEventListener> getChildren()
getChildren in class GuiEventHandlerprotected boolean mouseClicked(int index,
int button,
double mouseX,
double mouseY)
protected abstract boolean isSelected(int slotIndex)
protected int getContentHeight()
protected abstract void drawBackground()
protected void updateItemPos(int entryID,
int insideLeft,
int yPos,
float partialTicks)
protected abstract void drawSlot(int slotIndex,
int xPos,
int yPos,
int heightIn,
int mouseXIn,
int mouseYIn,
float partialTicks)
protected void drawListHeader(int insideLeft,
int insideTop,
Tessellator tessellatorIn)
protected void clickedHeader(int p_148132_1_,
int p_148132_2_)
protected void renderDecorations(int mouseXIn,
int mouseYIn)
public int getEntryAt(double x,
double y)
protected void bindAmountScrolled()
public int getMaxScroll()
public int getAmountScrolled()
public boolean isMouseInList(double p_195079_1_,
double p_195079_3_)
public void scrollBy(int amount)
public void drawScreen(int mouseXIn,
int mouseYIn,
float partialTicks)
protected void checkScrollbarClick(double mouseX,
double mouseY,
int button)
public boolean mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_)
mouseClicked in interface IGuiEventListenermouseClicked in interface IGuiEventListenerDeferredmouseClicked in class GuiEventHandlerpublic boolean mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_)
mouseReleased in interface IGuiEventListenermouseReleased in interface IGuiEventListenerDeferredmouseReleased in class GuiEventHandlerpublic boolean mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_)
mouseDragged in interface IGuiEventListenermouseDragged in interface IGuiEventListenerDeferredmouseDragged in class GuiEventHandlerpublic boolean mouseScrolled(double p_mouseScrolled_1_)
public boolean keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_)
keyPressed in interface IGuiEventListenerkeyPressed in interface IGuiEventListenerDeferredkeyPressed in class GuiEventHandlerpublic boolean charTyped(char p_charTyped_1_,
int p_charTyped_2_)
public int getListWidth()
protected void drawSelectionBox(int insideLeft,
int insideTop,
int mouseXIn,
int mouseYIn,
float partialTicks)
protected int getScrollBarX()
protected void overlayBackground(int startY,
int endY,
int startAlpha,
int endAlpha)
public void setSlotXBoundsFromLeft(int leftIn)
public int getSlotHeight()
protected void drawContainerBackground(Tessellator tessellator)