1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-07-16 08:52:59 +00:00

Not sure what irritates me more

The fact that I didn't run checkstyle before pushing or checkstyle
itself. I wish this ran fast enough I could put it as a commit hook.
This commit is contained in:
SquidDev 2020-12-11 21:41:29 +00:00
parent 85cf2d5ff1
commit 5865e9c41a
2 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,7 @@ public class EnergyMethods implements GenericSource
/** /**
* Get the energy of this block. * Get the energy of this block.
* *
* @param energy The current energy storage.
* @return The energy stored in this block, in FE. * @return The energy stored in this block, in FE.
*/ */
@LuaFunction( mainThread = true ) @LuaFunction( mainThread = true )
@ -51,6 +52,7 @@ public class EnergyMethods implements GenericSource
/** /**
* Get the maximum amount of energy this block can store. * Get the maximum amount of energy this block can store.
* *
* @param energy The current energy storage.
* @return The energy capacity of this block. * @return The energy capacity of this block.
*/ */
@LuaFunction( mainThread = true ) @LuaFunction( mainThread = true )

View File

@ -50,6 +50,7 @@ public class InventoryMethods implements GenericSource
/** /**
* Get the size of this inventory. * Get the size of this inventory.
* *
* @param inventory The current inventory.
* @return The number of slots in this inventory. * @return The number of slots in this inventory.
*/ */
@LuaFunction( mainThread = true ) @LuaFunction( mainThread = true )
@ -68,6 +69,7 @@ public class InventoryMethods implements GenericSource
* The table is sparse, and so empty slots will be `nil` - it is recommended to loop over using `pairs` rather than * The table is sparse, and so empty slots will be `nil` - it is recommended to loop over using `pairs` rather than
* `ipairs`. * `ipairs`.
* *
* @param inventory The current inventory.
* @return All items in this inventory. * @return All items in this inventory.
* @cc.treturn { (table|nil)... } All items in this inventory. * @cc.treturn { (table|nil)... } All items in this inventory.
*/ */
@ -88,6 +90,7 @@ public class InventoryMethods implements GenericSource
/** /**
* Get detailed information about an item. * Get detailed information about an item.
* *
* @param inventory The current inventory.
* @param slot The slot to get information about. * @param slot The slot to get information about.
* @return Information about the item in this slot, or {@code nil} if not present. * @return Information about the item in this slot, or {@code nil} if not present.
* @throws LuaException If the slot is out of range. * @throws LuaException If the slot is out of range.
@ -109,6 +112,8 @@ public class InventoryMethods implements GenericSource
* This allows you to push an item in an inventory to another inventory <em>on the same wired network</em>. Both * This allows you to push an item in an inventory to another inventory <em>on the same wired network</em>. Both
* inventories must attached to wired modems which are connected via a cable. * inventories must attached to wired modems which are connected via a cable.
* *
* @param from Inventory to move items from.
* @param computer The current computer.
* @param toName The name of the peripheral/inventory to push to. This is the string given to @{peripheral.wrap}, * @param toName The name of the peripheral/inventory to push to. This is the string given to @{peripheral.wrap},
* and displayed by the wired modem. * and displayed by the wired modem.
* @param fromSlot The slot in the current inventory to move items to. * @param fromSlot The slot in the current inventory to move items to.
@ -155,6 +160,8 @@ public class InventoryMethods implements GenericSource
* This allows you to transfer items between inventories <em>on the same wired network</em>. Both this and the source * This allows you to transfer items between inventories <em>on the same wired network</em>. Both this and the source
* inventory must attached to wired modems which are connected via a cable. * inventory must attached to wired modems which are connected via a cable.
* *
* @param to Inventory to move items to.
* @param computer The current computer.
* @param fromName The name of the peripheral/inventory to pull from. This is the string given to @{peripheral.wrap}, * @param fromName The name of the peripheral/inventory to pull from. This is the string given to @{peripheral.wrap},
* and displayed by the wired modem. * and displayed by the wired modem.
* @param fromSlot The slot in the source inventory to move items from. * @param fromSlot The slot in the source inventory to move items from.