1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-09-28 15:08:47 +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:
Jonathan Coates 2023-01-22 12:24:36 +00:00
parent 9873ccfa0d
commit d066d175bf
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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")
* *