
org.anti_ad.mc.common.TellPlayer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inventory-profiles-next Show documentation
Show all versions of inventory-profiles-next Show documentation
Client side Minecraft MOD that adds multiple features to help you keep your inventory organized.
package org.anti_ad.mc.common
import org.anti_ad.mc.common.Log
import org.anti_ad.mc.common.vanilla.glue.VanillaUtil
object TellPlayer {
fun chat(message: String) {
if (!VanillaUtil.inGame()) return
VanillaUtil.chat(message)
}
inline fun listenLog(level: Log.LogLevel,
block: () -> Unit) {
Log.withLogListener(level,
{ chat(it.message) },
block)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy