All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.anti_ad.mc.common.TellPlayer.kt Maven / Gradle / Ivy

Go to download

Client side Minecraft MOD that adds multiple features to help you keep your inventory organized.

There is a newer version: forge-1.17.1-1.1.1
Show newest version
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