blob: e9c30c739c1df5ab07bbe7a049def09663b3998b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package com.dulkirfabric.commands
import com.dulkirfabric.util.ScoreBoardUtils
import com.mojang.brigadier.CommandDispatcher
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource
import net.minecraft.command.CommandRegistryAccess
object TestCommand {
fun register(dispatcher: CommandDispatcher<FabricClientCommandSource>, registryAccess: CommandRegistryAccess) {
dispatcher.register(LiteralArgumentBuilder.literal<FabricClientCommandSource>("linetest").executes {
val lines = ScoreBoardUtils.getLines()
return@executes 0
})
}
}
|