aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/goodgenerator/util/DescTextLocalization.java
blob: b65f529475306ae6f4279513dec00c3ff5fabe22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package goodgenerator.util;

import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;

public class DescTextLocalization {

    public static final String BLUE_PRINT_INFO =
            "Follow the" + EnumChatFormatting.BLUE + " Structure" + EnumChatFormatting.DARK_BLUE + "Lib"
                    + EnumChatFormatting.GRAY + " hologram projector to build the main structure.";

    public static String[] addText(String preFix, int length) {
        String[] text = new String[length];
        for (int i = 0; i < length; i++) {
            text[i] = StatCollector.translateToLocal(preFix + "." + i);
        }
        return text;
    }
}