Class BattleRuleWidget.RuleEntry
java.lang.Object
net.minecraft.client.gui.components.ObjectSelectionList.Entry<BattleRuleWidget.RuleEntry>
com.pixelmonmod.pixelmon.client.gui.battles.rules.BattleRuleWidget.RuleEntry
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.narration.NarrationSupplier
- Enclosing class:
BattleRuleWidget
public class BattleRuleWidget.RuleEntry
extends net.minecraft.client.gui.components.ObjectSelectionList.Entry<BattleRuleWidget.RuleEntry>
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Component
getRule()
boolean
boolean
mouseClicked
(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_) void
render
(net.minecraft.client.gui.GuiGraphics guiGraphics, int entryId, int top, int left, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean mouseOver, float partialTicks) void
setFocused
(boolean focused) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarration
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, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
RuleEntry
-
-
Method Details
-
getRule
-
getNarration
public net.minecraft.network.chat.Component getNarration()- Specified by:
getNarration
in classnet.minecraft.client.gui.components.ObjectSelectionList.Entry<BattleRuleWidget.RuleEntry>
-
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int entryId, int top, int left, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean mouseOver, float partialTicks) -
mouseClicked
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- Overrides:
mouseClicked
in classnet.minecraft.client.gui.components.ObjectSelectionList.Entry<BattleRuleWidget.RuleEntry>
-
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
-