mirror of https://github.com/kami-blue/client
[cleanup] Command builder lambda inlining
This commit is contained in:
parent
9fd1029c4d
commit
3d9445b4a7
|
@ -1 +1 @@
|
|||
Subproject commit 1daa452960100da342d09903f46c1ffc02d72963
|
||||
Subproject commit d7d5e820e08ba859188c3bb33671544883afa513
|
|
@ -28,7 +28,7 @@ abstract class ClientCommand(
|
|||
val prefixName get() = "$prefix$name"
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.module(
|
||||
protected inline fun AbstractArg<*>.module(
|
||||
name: String,
|
||||
block: BuilderBlock<AbstractModule>
|
||||
) {
|
||||
|
@ -36,7 +36,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.hudElement(
|
||||
protected inline fun AbstractArg<*>.hudElement(
|
||||
name: String,
|
||||
block: BuilderBlock<HudElement>
|
||||
) {
|
||||
|
@ -44,7 +44,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.block(
|
||||
protected inline fun AbstractArg<*>.block(
|
||||
name: String,
|
||||
block: BuilderBlock<Block>
|
||||
) {
|
||||
|
@ -52,7 +52,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.item(
|
||||
protected inline fun AbstractArg<*>.item(
|
||||
name: String,
|
||||
block: BuilderBlock<Item>
|
||||
) {
|
||||
|
@ -60,7 +60,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.player(
|
||||
protected inline fun AbstractArg<*>.player(
|
||||
name: String,
|
||||
block: BuilderBlock<PlayerProfile>
|
||||
) {
|
||||
|
@ -68,7 +68,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.blockPos(
|
||||
protected inline fun AbstractArg<*>.blockPos(
|
||||
name: String,
|
||||
block: BuilderBlock<BlockPos>
|
||||
) {
|
||||
|
@ -76,7 +76,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.baritoneBlock(
|
||||
protected inline fun AbstractArg<*>.baritoneBlock(
|
||||
name: String,
|
||||
block: BuilderBlock<Block>
|
||||
) {
|
||||
|
@ -84,7 +84,7 @@ abstract class ClientCommand(
|
|||
}
|
||||
|
||||
@CommandBuilder
|
||||
protected fun AbstractArg<*>.schematic(
|
||||
protected inline fun AbstractArg<*>.schematic(
|
||||
name: String,
|
||||
file: BuilderBlock<File>
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue