Class KeyEntryRenderEvent
java.lang.Object
net.neoforged.bus.api.Event
com.blamejared.controlling.api.events.KeyEntryRenderEvent
- All Implemented Interfaces:
IKeyEntryRenderEvent
public class KeyEntryRenderEvent
extends net.neoforged.bus.api.Event
implements IKeyEntryRenderEvent
RenderKeyEntryEvent is called at the top of
IKeyEntry.renderContent(GuiGraphics, int, int, boolean, float)
is called, allowing mods to render additional info.-
Constructor Summary
ConstructorsConstructorDescriptionKeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphics guiGraphics, int y, int x, int rowLeft, int rowWidth, boolean hovered, float partialTicks) -
Method Summary
-
Constructor Details
-
KeyEntryRenderEvent
public KeyEntryRenderEvent(IKeyEntry entry, net.minecraft.client.gui.GuiGraphics guiGraphics, int y, int x, int rowLeft, int rowWidth, boolean hovered, float partialTicks)
-
-
Method Details
-
getEntry
- Specified by:
getEntryin interfaceIKeyEntryRenderEvent
-
getGuiGraphics
public net.minecraft.client.gui.GuiGraphics getGuiGraphics()- Specified by:
getGuiGraphicsin interfaceIKeyEntryRenderEvent
-
getY
public int getY()- Specified by:
getYin interfaceIKeyEntryRenderEvent
-
getX
public int getX()- Specified by:
getXin interfaceIKeyEntryRenderEvent
-
getRowLeft
public int getRowLeft()- Specified by:
getRowLeftin interfaceIKeyEntryRenderEvent
-
getRowWidth
public int getRowWidth()- Specified by:
getRowWidthin interfaceIKeyEntryRenderEvent
-
isHovered
public boolean isHovered()- Specified by:
isHoveredin interfaceIKeyEntryRenderEvent
-
getPartialTicks
public float getPartialTicks()- Specified by:
getPartialTicksin interfaceIKeyEntryRenderEvent
-