1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-07 07:50:27 +00:00

Add a whole bunch of missing @since annotations

This commit is contained in:
Jonathan Coates 2022-10-31 20:09:47 +00:00
parent 93f747fb54
commit f528046535
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
5 changed files with 6 additions and 2 deletions

View File

@ -25,6 +25,7 @@ import javax.annotation.Nonnull;
* ::: * :::
* *
* @cc.module energy_storage * @cc.module energy_storage
* @cc.since 1.94.0
*/ */
public class EnergyMethods implements GenericPeripheral public class EnergyMethods implements GenericPeripheral
{ {

View File

@ -35,6 +35,7 @@ import static dan200.computercraft.shared.peripheral.generic.methods.ArgumentHel
* Methods for interacting with tanks and other fluid storage blocks. * Methods for interacting with tanks and other fluid storage blocks.
* *
* @cc.module fluid_storage * @cc.module fluid_storage
* @cc.since 1.94.0
*/ */
public class FluidMethods implements GenericPeripheral public class FluidMethods implements GenericPeripheral
{ {

View File

@ -36,6 +36,7 @@ import static dan200.computercraft.shared.peripheral.generic.methods.ArgumentHel
* Methods for interacting with inventories. * Methods for interacting with inventories.
* *
* @cc.module inventory * @cc.module inventory
* @cc.since 1.94.0
*/ */
public class InventoryMethods implements GenericPeripheral public class InventoryMethods implements GenericPeripheral
{ {
@ -168,6 +169,7 @@ public class InventoryMethods implements GenericPeripheral
* end * end
* print(total) * print(total)
* }</pre> * }</pre>
* @cc.since 1.96.0
*/ */
@LuaFunction( mainThread = true ) @LuaFunction( mainThread = true )
public static int getItemLimit( IItemHandler inventory, int slot ) throws LuaException public static int getItemLimit( IItemHandler inventory, int slot ) throws LuaException

View File

@ -222,7 +222,7 @@ And several bug fixes:
# New features in CC: Tweaked 1.96.0 # New features in CC: Tweaked 1.96.0
* Use lightGrey for folders within the "list" program. * Use lightGrey for folders within the "list" program.
* Add getLimit to inventory peripherals. * Add `getItemLimit` to inventory peripherals.
* Expose the generic peripheral system to the public API. * Expose the generic peripheral system to the public API.
* Add cc.expect.range (Lupus590). * Add cc.expect.range (Lupus590).
* Allow calling cc.expect directly (MCJack123). * Allow calling cc.expect directly (MCJack123).

View File

@ -27,9 +27,9 @@ application or development builds of [FFmpeg].
@see guide!speaker_audio Gives a more general introduction to audio processing and the speaker. @see guide!speaker_audio Gives a more general introduction to audio processing and the speaker.
@see speaker.playAudio To play the decoded audio data. @see speaker.playAudio To play the decoded audio data.
@since 1.100.0
@usage Reads "data/example.dfpwm" in chunks, decodes them and then doubles the speed of the audio. The resulting audio @usage Reads "data/example.dfpwm" in chunks, decodes them and then doubles the speed of the audio. The resulting audio
is then re-encoded and saved to "speedy.dfpwm". This processed audio can then be played with the `speaker` program. is then re-encoded and saved to "speedy.dfpwm". This processed audio can then be played with the `speaker` program.
@since 1.100.0
```lua ```lua
local dfpwm = require("cc.audio.dfpwm") local dfpwm = require("cc.audio.dfpwm")