blob: ab06030add29a99b93a737d4c9129306d032a3d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package moe.nea.firmament.features.debug
import net.minecraft.text.Text
import moe.nea.firmament.util.MC
class DebugLogger(val tag: String) {
fun isEnabled() = DeveloperFeatures.isEnabled // TODO: allow filtering by tag
fun log(text: () -> String) {
if (!isEnabled()) return
MC.sendChat(Text.literal(text()))
}
}
|