Uses of Class
io.github.somesourcecode.someguiapi.scene.context.NodeClickContext
Packages that use NodeClickContext
-
Uses of NodeClickContext in io.github.somesourcecode.someguiapi.scene
Methods in io.github.somesourcecode.someguiapi.scene that return types with arguments of type NodeClickContextModifier and TypeMethodDescriptionjava.util.function.Consumer<NodeClickContext>Node.getOnClick()Returns the consumer that is called when the node is clicked.java.util.function.Consumer<NodeClickContext>Node.getOnHotBarClick()Returns the consumer that is called when the node receives a hot bar click.java.util.function.Consumer<NodeClickContext>Node.getOnLeftClick()Returns the consumer that is called when the node is left-clicked.java.util.function.Consumer<NodeClickContext>Node.getOnRightClick()Returns the consumer that is called when the node is right-clicked.java.util.function.Consumer<NodeClickContext>Node.getOnShiftClick()Returns the consumer that is called when the node is shift-clicked.Methods in io.github.somesourcecode.someguiapi.scene with parameters of type NodeClickContextModifier and TypeMethodDescriptionvoidScene.fireOnClick(NodeClickContext context) Fires the onClick event for the node at the given coordinates.Method parameters in io.github.somesourcecode.someguiapi.scene with type arguments of type NodeClickContextModifier and TypeMethodDescriptionGuiItem.Builder.onClick(java.util.function.Consumer<NodeClickContext> onClick) Sets the consumer that is called when the node is clicked.GuiItem.Builder.onHotBarClick(java.util.function.Consumer<NodeClickContext> onHotBarClick) Sets the consumer that is called when the node receives a hot bar click.GuiItem.Builder.onLeftClick(java.util.function.Consumer<NodeClickContext> onLeftClick) Sets the consumer that is called when the node is left-clicked.GuiItem.Builder.onRightClick(java.util.function.Consumer<NodeClickContext> onRightClick) Sets the consumer that is called when the node is right-clicked.GuiItem.Builder.onShiftClick(java.util.function.Consumer<NodeClickContext> onShiftClick) Sets the consumer that is called when the node is shift-clicked.voidNode.setOnClick(java.util.function.Consumer<NodeClickContext> onClick) Sets the consumer that is called when the node is clicked.voidNode.setOnHotBarClick(java.util.function.Consumer<NodeClickContext> onHotBarClick) Sets the consumer that is called when the node receives a hot bar click.voidNode.setOnLeftClick(java.util.function.Consumer<NodeClickContext> onLeftClick) Sets the consumer that is called when the node is left-clicked.voidNode.setOnRightClick(java.util.function.Consumer<NodeClickContext> onRightClick) Sets the consumer that is called when the node is right-clicked.voidNode.setOnShiftClick(java.util.function.Consumer<NodeClickContext> onShiftClick) Sets the consumer that is called when the node is shift-clicked.