We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e6806 commit 36353e0Copy full SHA for 36353e0
common/src/main/kotlin/com/lambda/util/SoundUtils.kt
@@ -0,0 +1,13 @@
1
+package com.lambda.util
2
+
3
+import com.lambda.context.SafeContext
4
+import net.minecraft.client.sound.PositionedSoundInstance
5
+import net.minecraft.sound.SoundEvent
6
7
+object SoundUtils {
8
+ fun SafeContext.playSound(event: SoundEvent, pitch: Float = 1.0f) {
9
+ mc.soundManager.play(
10
+ PositionedSoundInstance.master(event, pitch)
11
+ )
12
+ }
13
+}
common/src/main/kotlin/com/lambda/util/primitives/extension/Aliases.kt
@@ -0,0 +1,6 @@
+package com.lambda.util.primitives.extension
+import com.mojang.brigadier.builder.LiteralArgumentBuilder
+import net.minecraft.command.CommandSource
+typealias CommandBuilder = LiteralArgumentBuilder<CommandSource>
0 commit comments