Package io.github.zhengzhengyiyi.addon
Class DateTimeDisplayEntrypoint
java.lang.Object
io.github.zhengzhengyiyi.addon.DateTimeDisplayEntrypoint
- All Implemented Interfaces:
ApiEntrypoint
-
Field Summary
Fields inherited from interface io.github.zhengzhengyiyi.api.ApiEntrypoint
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Initializes the API entry point.voidonEditerClose(EditorScreen editor) Called when the editor screen is closed.voidonEditerOpen(EditorScreen editor) Called when the editor screen is opened.net.minecraft.util.ActionResultonMouseDown(int x, int y) Called when a mouse button is pressed on the screen.voidCalled when the mouse scroll wheel is used.voidrenderButton(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) Called to render custom buttons or elements on the screen.voidsetEnabled(boolean enabled) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.zhengzhengyiyi.api.ApiEntrypoint
onCharTyped, onType
-
Constructor Details
-
DateTimeDisplayEntrypoint
public DateTimeDisplayEntrypoint()
-
-
Method Details
-
init
public void init()Description copied from interface:ApiEntrypointInitializes the API entry point. This method is called by the config editor mod during its initialization phase. It is the only required method to be implemented.- Specified by:
initin interfaceApiEntrypoint
-
onEditerOpen
Description copied from interface:ApiEntrypointCalled when the editor screen is opened.- Specified by:
onEditerOpenin interfaceApiEntrypoint- Parameters:
editor- The instance of the EditorScreen.
-
onEditerClose
Description copied from interface:ApiEntrypointCalled when the editor screen is closed.- Specified by:
onEditerClosein interfaceApiEntrypoint- Parameters:
editor- The instance of the EditorScreen.
-
onMouseDown
public net.minecraft.util.ActionResult onMouseDown(int x, int y) Description copied from interface:ApiEntrypointCalled when a mouse button is pressed on the screen.- Specified by:
onMouseDownin interfaceApiEntrypoint- Parameters:
x- The x-coordinate of the mouse cursor.y- The y-coordinate of the mouse cursor.
-
onMouseScroll
public void onMouseScroll()Description copied from interface:ApiEntrypointCalled when the mouse scroll wheel is used.- Specified by:
onMouseScrollin interfaceApiEntrypoint
-
renderButton
public void renderButton(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) Description copied from interface:ApiEntrypointCalled to render custom buttons or elements on the screen.- Specified by:
renderButtonin interfaceApiEntrypoint- Parameters:
context- The draw context used for rendering.mouseX- The x-coordinate of the mouse cursor.mouseY- The y-coordinate of the mouse cursor.delta- The partial ticks for smooth rendering.
-
setEnabled
public void setEnabled(boolean enabled)
-