Skip to content

Commit

Permalink
Added some utility methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-albers committed Jun 9, 2016
1 parent f9efcdf commit 7fe0236
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
57 changes: 57 additions & 0 deletions The 5zig API.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../The 5zig Mod/lib/netty-all-4.0.23.Final.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../The 5zig Mod/lib/log4j-api-2.0-beta9.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../The 5zig Mod/lib/lwjgl-2.9.4-nightly-20150209.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../The 5zig Mod/lib/log4j-core-2.0-beta9.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/../The 5zig Mod/lib/authlib-1.5.17.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>
18 changes: 18 additions & 0 deletions src/eu/the5zig/mod/ModAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,24 @@ public interface ModAPI {
*/
String getOpenContainerTitle();

/**
* @return the selected hotbar item slot
*/
int getSelectedHotbarSlot();

/**
* Sets the current hotbar item slot.
*
* @param slot the index of the slot that should be selected. Must be from 0 to 8.
* @throws IndexOutOfBoundsException if the specified slot parameter is either less than zero or greater than 8.
*/
void setSelectedHotbarSlot(int slot);

/**
* Simulates a right mouse click / use action of the current item
*/
void rightClickItem();

/**
* @return a class, representing a sidebar scoreboard.
*/
Expand Down

0 comments on commit 7fe0236

Please sign in to comment.