1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 07:03:22 +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"
# Build tools
cctJavadoc = "1.5.3"
cctJavadoc = "1.6.0"
checkstyle = "10.3.4"
curseForgeGradle = "1.0.11"
errorProne-core = "2.14.0"

View File

@ -242,7 +242,7 @@ public final boolean playNote(ILuaContext context, String instrumentA, Optional<
* @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 final boolean playSound(ILuaContext context, String name, Optional<Double
* @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")
*