Class BattleLogElement
java.lang.Object
com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
com.pixelmonmod.pixelmon.client.gui.battles.battleScreens.BattleLogElement
- All Implemented Interfaces:
net.minecraft.client.renderer.texture.Tickable
public class BattleLogElement
extends PixelmonWidget
implements net.minecraft.client.renderer.texture.Tickable
Created by Jay113355 on 10/20/2020.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
drawElement
(net.minecraft.client.gui.GuiGraphics graphics, float scale) void
drawElement
(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int width, int height, boolean autoAcknowledge) void
forceAddMessage
(net.minecraft.network.chat.Component message) int
boolean
processUpDown
(double mouseX, double mouseY) void
void
void
setActiveMessage
(net.minecraft.network.chat.Component message) void
tick()
boolean
withinBounds
(double mouseX, double mouseY) Methods inherited from class com.pixelmonmod.pixelmon.client.gui.widgets.PixelmonWidget
drawElementScaled, getHeight, getWidth, getX, getY, isMouseOver, setPosition
-
Field Details
-
autoAcknowledge
protected boolean autoAcknowledge
-
-
Constructor Details
-
BattleLogElement
-
-
Method Details
-
drawElement
public void drawElement(net.minecraft.client.gui.GuiGraphics graphics, float scale) - Specified by:
drawElement
in classPixelmonWidget
-
tick
public void tick()- Specified by:
tick
in interfacenet.minecraft.client.renderer.texture.Tickable
-
drawElement
public void drawElement(net.minecraft.client.gui.GuiGraphics graphics, int x, int y, int width, int height, boolean autoAcknowledge) -
setActiveMessage
public void setActiveMessage(net.minecraft.network.chat.Component message) -
forceAddMessage
public void forceAddMessage(net.minecraft.network.chat.Component message) -
acknowledge
public void acknowledge() -
withinBounds
public boolean withinBounds(double mouseX, double mouseY) -
processUpDown
public boolean processUpDown(double mouseX, double mouseY) -
scrollBattleLogUp
public void scrollBattleLogUp() -
scrollBattleLogDown
public void scrollBattleLogDown() -
getScrollPosition
public int getScrollPosition()
-