Package mods.railcraft.client.emblems

Examples of mods.railcraft.client.emblems.Emblem


            NBTTagString emblemIdent = (NBTTagString) nbt.getTag("emblem");

            if (emblemIdent == null || EmblemToolsClient.packageManager == null)
                return;

            Emblem emblem = EmblemToolsClient.packageManager.getEmblem(emblemIdent.func_150285_a_());
            if (emblem != null)
                info.add(EnumChatFormatting.GRAY + emblem.displayName);
        }
    }
View Full Code Here


        format = LocalizationPlugin.translate("railcraft.gui.locomotive.tip.item.whistle");
        info.add(String.format(format, whistle < 0 ? "???" : String.format("%.2f", whistle)));

        String emblemIdent = getEmblem(stack);
        if (emblemIdent != null && !emblemIdent.isEmpty() && EmblemToolsClient.packageManager != null) {
            Emblem emblem = EmblemToolsClient.packageManager.getEmblem(emblemIdent);
            if (emblem != null) {
                format = LocalizationPlugin.translate("railcraft.gui.locomotive.tip.item.emblem");
                info.add(String.format(format, emblem.displayName));
            }
        }
View Full Code Here

TOP

Related Classes of mods.railcraft.client.emblems.Emblem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.