Class ModalSurvivalTab
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.inventory.tabs.impl.SimpleSurvivalTab
com.pixelmonmod.api.client.screen.ModalSurvivalTab
- 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, showParty
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsConstructorDescriptionModalSurvivalTab
(net.minecraft.network.chat.Component name, String defaultMode, Function<String, StatefulScreen> screen, int id, int column, boolean topRow, boolean alignedRight, boolean showParty, net.minecraft.world.item.ItemStack iconItem) -
Method Summary
Modifier and TypeMethodDescriptionaccess()
boolean
charTyped
(char typedChar, int keyCode) void
void
init()
boolean
keyPressed
(int keyCode, int scanCode, int modifiers) boolean
keyReleased
(int keyCode, int scanCode, int modifiers) boolean
mouseClicked
(double x, double y, int b) boolean
mouseDragged
(double x, double y, int b, double dx, double dy) void
mouseMoved
(double x, double y) boolean
mouseReleased
(double x, double y, int b) boolean
mouseScrolled
(double x, double y, double dx, double dy) void
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) void
reset()
void
void
tick()
void
update()
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, showParty
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
getCurrentFocusPath, getRectangle, isMouseOver, nextFocusPath
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
ModalSurvivalTab
public ModalSurvivalTab(net.minecraft.network.chat.Component name, String defaultMode, Function<String, 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() -
setMode
-
forceUpdate
public void forceUpdate() -
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)
-