Class StatefulSurvivalTab
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.inventory.tabs.impl.SimpleSurvivalTab
com.pixelmonmod.api.client.screen.StatefulSurvivalTab
- All Implemented Interfaces:
SurvivalTab,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.TabOrderedElement
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.client.gui.inventory.tabs.impl.SimpleSurvivalTab
buttons, imageHeight, imageWidth, minecraft, showPartyFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionStatefulSurvivalTab(net.minecraft.network.chat.Component name, Supplier<StatefulScreen> screen, int id, int column, boolean topRow, boolean alignedRight, boolean showParty, net.minecraft.world.item.ItemStack iconItem) -
Method Summary
Modifier and TypeMethodDescriptionaccess()booleancharTyped(char typedChar, int keyCode) voidinit()booleankeyPressed(int keyCode, int scanCode, int modifiers) booleankeyReleased(int keyCode, int scanCode, int modifiers) booleanmouseClicked(double x, double y, int b) booleanmouseDragged(double x, double y, int b, double dx, double dy) voidmouseMoved(double x, double y) booleanmouseReleased(double x, double y, int b) booleanmouseScrolled(double x, double y, double dx, double dy) voidvoidrender(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) voidreset()voidtick()voidupdate()Methods inherited from class com.pixelmonmod.pixelmon.client.gui.inventory.tabs.impl.SimpleSurvivalTab
addRenderableWidget, getColumn, getGuiLeft, getGuiTop, getHeight, getIconItem, getId, getWidth, isAlignedRight, isFocused, isTopRow, name, setFocused, showPartyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getCurrentFocusPath, getRectangle, isMouseOver, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
StatefulSurvivalTab
public StatefulSurvivalTab(net.minecraft.network.chat.Component name, Supplier<StatefulScreen> screen, int id, int column, boolean topRow, boolean alignedRight, boolean showParty, net.minecraft.world.item.ItemStack iconItem)
-
-
Method Details
-
init
public void init() -
update
public void update() -
tick
public void tick() -
reset
public void reset() -
rebuild
-
access
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) -
mouseReleased
public boolean mouseReleased(double x, double y, int b) -
mouseDragged
public boolean mouseDragged(double x, double y, int b, double dx, double dy) -
mouseScrolled
public boolean mouseScrolled(double x, double y, double dx, double dy) -
mouseMoved
public void mouseMoved(double x, double y) -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) -
keyReleased
public boolean keyReleased(int keyCode, int scanCode, int modifiers) -
charTyped
public boolean charTyped(char typedChar, int keyCode) -
mouseClicked
public boolean mouseClicked(double x, double y, int b)
-