package com.mcgoodtime.gti;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

/**
 * Created by BestOwl on 2015.11.14.0014.
 *
 * @author BestOwl
 */
public class GtiUtil {

    @SideOnly(Side.CLIENT)
    public static int getGuiScaled(int scale, float min, float max) {
        return (int) (scale * Math.min(1.0F, min / max));
    }
}

@@ -99,16 +99,117 @@
 ideOnly;
+%0Aimport net.minecraft.entity.player.EntityPlayer;%0Aimport net.minecraft.util.ChatComponentTranslation;
 %0A%0A/**%0A *
@@ -458,11 +458,241 @@
 );%0A    %7D
+%0A%0A    public static void messageToPlayer(EntityPlayer player, String message, Object... args) %7B%0A        ChatComponentTranslation msg = new ChatComponentTranslation(message, args);%0A        player.addChatComponentMessage(msg);%0A    %7D
 %0A%7D%0A

Add useful method