File tree Expand file tree Collapse file tree
src/main/java/de/srendi/advancedperipherals/common
addons/computercraft/luaapi Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public String[] getNames() {
3030 }
3131
3232 @ LuaFunction
33- public final Map <String , String > getAddonVersions () {
33+ public Map <String , String > getAddonVersions () {
3434 ModList modList = ModList .get ();
3535 Map <String , String > modVersions = new HashMap <>();
3636
@@ -43,7 +43,7 @@ public final Map<String, String> getAddonVersions() {
4343 }
4444
4545 @ LuaFunction
46- public final String getMCVersion () throws LuaException {
46+ public String getMCVersion () throws LuaException {
4747 Optional <? extends ModContainer > minecraftContainer = ModList .get ().getModContainerById ("minecraft" );
4848
4949 return minecraftContainer .map (modContainer -> modContainer .getModInfo ().getVersion ().toString ())
@@ -52,15 +52,15 @@ public final String getMCVersion() throws LuaException {
5252 }
5353
5454 @ LuaFunction
55- public final String getAPVersion () throws LuaException {
55+ public String getAPVersion () throws LuaException {
5656 Optional <? extends ModContainer > minecraftContainer = ModList .get ().getModContainerById (AdvancedPeripherals .MOD_ID );
5757
5858 return minecraftContainer .map (modContainer -> modContainer .getModInfo ().getVersion ().toString ())
5959 .orElseThrow (() -> new LuaException (AdvancedPeripherals .MOD_ID + " is not installed??? report this!!!" ));
6060 }
6161
6262 @ LuaFunction
63- public final ILuaFunction iterPlayerStatKeys () {
63+ public ILuaFunction iterPlayerStatKeys () {
6464 return new StatTypeIterator ();
6565 }
6666
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public String[] getNames() {
3434 * @return if the smart glasses is equipped
3535 */
3636 @ LuaFunction (mainThread = true )
37- public final boolean isEquipped () {
37+ public boolean isEquipped () {
3838 return this .equipped .getAsBoolean ();
3939 }
4040}
Original file line number Diff line number Diff line change 11package de .srendi .advancedperipherals .common .smartglasses .modules .overlay ;
22
33import de .srendi .advancedperipherals .AdvancedPeripherals ;
4- import de .srendi .advancedperipherals .common .network .toclient .RenderableObjectAddPacket ;
54import de .srendi .advancedperipherals .common .network .toclient .RenderableObjectBulkAddPacket ;
65import de .srendi .advancedperipherals .common .network .toclient .RenderableObjectBulkSyncPacket ;
76import de .srendi .advancedperipherals .common .network .toclient .RenderableObjectClearPacket ;
87import de .srendi .advancedperipherals .common .network .toclient .RenderableObjectDeletePacket ;
9- import de .srendi .advancedperipherals .common .network .toclient .RenderableObjectSyncPacket ;
108import de .srendi .advancedperipherals .common .setup .CCEvents ;
119import de .srendi .advancedperipherals .common .smartglasses .SmartGlassesSideAccess ;
1210import de .srendi .advancedperipherals .common .smartglasses .modules .IModule ;
You can’t perform that action at this time.
0 commit comments