Class SimpleSurvivalTab
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.inventory.tabs.impl.SimpleSurvivalTab
- All Implemented Interfaces:
SurvivalTab
,net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.TabOrderedElement
- Direct Known Subclasses:
DayCareTab
,StatefulSurvivalTab
-
Field Summary
Modifier and TypeFieldDescriptionprotected final List<net.minecraft.client.gui.components.events.GuiEventListener>
protected int
protected int
protected final net.minecraft.client.Minecraft
protected final boolean
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionSimpleSurvivalTab
(int id, int column, boolean topRow, boolean alignedRight, boolean showParty, net.minecraft.world.item.ItemStack iconItem) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addRenderableWidget
(net.minecraft.client.gui.components.Button button) int
protected int
protected int
protected int
net.minecraft.world.item.ItemStack
int
getId()
protected int
getWidth()
boolean
boolean
boolean
isTopRow()
void
setFocused
(boolean focused) boolean
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, getRectangle, isMouseOver, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods inherited from interface com.pixelmonmod.pixelmon.client.gui.inventory.tabs.SurvivalTab
init, render, tick
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
showParty
protected final boolean showParty -
imageWidth
protected int imageWidth -
imageHeight
protected int imageHeight -
buttons
-
minecraft
protected final net.minecraft.client.Minecraft minecraft
-
-
Constructor Details
-
SimpleSurvivalTab
public SimpleSurvivalTab(int id, int column, boolean topRow, boolean alignedRight, boolean showParty, net.minecraft.world.item.ItemStack iconItem)
-
-
Method Details
-
getId
public int getId()- Specified by:
getId
in interfaceSurvivalTab
-
getColumn
public int getColumn()- Specified by:
getColumn
in interfaceSurvivalTab
-
isTopRow
public boolean isTopRow()- Specified by:
isTopRow
in interfaceSurvivalTab
-
isAlignedRight
public boolean isAlignedRight()- Specified by:
isAlignedRight
in interfaceSurvivalTab
-
getIconItem
public net.minecraft.world.item.ItemStack getIconItem()- Specified by:
getIconItem
in interfaceSurvivalTab
-
showParty
public boolean showParty()- Specified by:
showParty
in interfaceSurvivalTab
-
addRenderableWidget
protected void addRenderableWidget(net.minecraft.client.gui.components.Button button) -
getWidth
protected int getWidth() -
getHeight
protected int getHeight() -
getGuiLeft
protected int getGuiLeft() -
getGuiTop
protected int getGuiTop() -
setFocused
public void setFocused(boolean focused) - Specified by:
setFocused
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
isFocused
public boolean isFocused()- Specified by:
isFocused
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
-