mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-09-29 23:40:46 +00:00
Attach a speaker peripheral inside its docs
This required a version bump to cct-javadoc to allow using attributes inside <pre> blocks.
This commit is contained in:
parent
9873ccfa0d
commit
d066d175bf
@ -42,7 +42,7 @@ jqwik = "1.7.0"
|
|||||||
junit = "5.9.1"
|
junit = "5.9.1"
|
||||||
|
|
||||||
# Build tools
|
# Build tools
|
||||||
cctJavadoc = "1.5.3"
|
cctJavadoc = "1.6.0"
|
||||||
checkstyle = "10.3.4"
|
checkstyle = "10.3.4"
|
||||||
curseForgeGradle = "1.0.11"
|
curseForgeGradle = "1.0.11"
|
||||||
errorProne-core = "2.14.0"
|
errorProne-core = "2.14.0"
|
||||||
|
@ -242,7 +242,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
|||||||
* @throws LuaException If the sound name was invalid.
|
* @throws LuaException If the sound name was invalid.
|
||||||
* @cc.usage Play a creeper hiss with the speaker.
|
* @cc.usage Play a creeper hiss with the speaker.
|
||||||
*
|
*
|
||||||
* <pre>{@code
|
* <pre data-peripheral="speaker">{@code
|
||||||
* local speaker = peripheral.find("speaker")
|
* local speaker = peripheral.find("speaker")
|
||||||
* speaker.playSound("entity.creeper.primed")
|
* speaker.playSound("entity.creeper.primed")
|
||||||
* }</pre>
|
* }</pre>
|
||||||
@ -294,7 +294,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
|||||||
* @cc.since 1.100
|
* @cc.since 1.100
|
||||||
* @cc.usage Read an audio file, decode it using @{cc.audio.dfpwm}, and play it using the speaker.
|
* @cc.usage Read an audio file, decode it using @{cc.audio.dfpwm}, and play it using the speaker.
|
||||||
*
|
*
|
||||||
* <pre>{@code
|
* <pre data-peripheral="speaker">{@code
|
||||||
* local dfpwm = require("cc.audio.dfpwm")
|
* local dfpwm = require("cc.audio.dfpwm")
|
||||||
* local speaker = peripheral.find("speaker")
|
* local speaker = peripheral.find("speaker")
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user