Utils cleanup
This commit is contained in:
parent
8162b35ec8
commit
a4ea9b829f
|
@ -1,4 +1,4 @@
|
|||
package civilengineering.util
|
||||
package civilengineering
|
||||
|
||||
|
||||
private const val ZWSP: Char = '\u200b'
|
|
@ -1,7 +1,7 @@
|
|||
package civilengineering.bridge
|
||||
|
||||
import civilengineering.cfg
|
||||
import civilengineering.util.antiping
|
||||
import civilengineering.antiping
|
||||
import com.google.gson.Gson
|
||||
|
||||
data class ApiMessage(
|
||||
|
|
|
@ -3,7 +3,7 @@ package civilengineering.eventhandlers
|
|||
import civilengineering.bridge.ApiMessage
|
||||
import civilengineering.bridge.MessageHandler
|
||||
import civilengineering.cfg
|
||||
import civilengineering.util.antiping
|
||||
import civilengineering.antiping
|
||||
import net.minecraftforge.event.entity.player.AdvancementEvent
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package civilengineering.eventhandlers
|
|||
import civilengineering.bridge.ApiMessage
|
||||
import civilengineering.bridge.MessageHandler
|
||||
import civilengineering.cfg
|
||||
import civilengineering.util.antiping
|
||||
import civilengineering.antiping
|
||||
import net.minecraft.entity.player.EntityPlayer
|
||||
import net.minecraftforge.event.entity.living.LivingDeathEvent
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
||||
|
|
|
@ -3,7 +3,7 @@ package civilengineering.eventhandlers
|
|||
import civilengineering.bridge.ApiMessage
|
||||
import civilengineering.bridge.MessageHandler
|
||||
import civilengineering.cfg
|
||||
import civilengineering.util.antiping
|
||||
import civilengineering.antiping
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
||||
import net.minecraftforge.fml.common.gameevent.PlayerEvent
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
package civilengineering.util
|
||||
|
||||
fun String.color(color: Color):String {
|
||||
return color.code+this
|
||||
}
|
||||
|
||||
enum class Color(val index:Int,val code:String) {
|
||||
BLACK(0,"§0"),
|
||||
DARK_BLUE(1,"§1"),
|
||||
DARK_GREEN(2,"§2"),
|
||||
DARK_AQUA(3,"§3"),
|
||||
DARK_RED(4,"§4"),
|
||||
DARK_PURPLE(5,"§5"),
|
||||
GOLD(6,"§6"),
|
||||
GRAY(7,"§7"),
|
||||
DARK_GRAY(8,"§8"),
|
||||
BLUE(9,"§9"),
|
||||
GREEN(10,"§a"),
|
||||
AQUA(11,"§b"),
|
||||
RED(12,"§c"),
|
||||
LIGHT_PURPLE(13,"§d"),
|
||||
YELLOW(14,"§e"),
|
||||
WHITE(15,"§f")
|
||||
}
|
Loading…
Reference in New Issue