mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-22 17:37:38 +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:
@@ -242,7 +242,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
||||
* @throws LuaException If the sound name was invalid.
|
||||
* @cc.usage Play a creeper hiss with the speaker.
|
||||
*
|
||||
* <pre>{@code
|
||||
* <pre data-peripheral="speaker">{@code
|
||||
* local speaker = peripheral.find("speaker")
|
||||
* speaker.playSound("entity.creeper.primed")
|
||||
* }</pre>
|
||||
@@ -294,7 +294,7 @@ public abstract class SpeakerPeripheral implements IPeripheral {
|
||||
* @cc.since 1.100
|
||||
* @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 speaker = peripheral.find("speaker")
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user