package com.yolp900.itsjustacharm.reference; import com.yolp900.itsjustacharm.api.IJCConstants; import com.yolp900.itsjustacharm.util.TextHelper; import net.minecraft.util.ResourceLocation; public enum LibGuis { ConstructionTable("ConstructionTable"); private String title; private ResourceLocation background; LibGuis(String title) { this(title, title); } LibGuis(String title, String background) { this(title, new ResourceLocation(IJCConstants.MOD_ID, "textures/guis/" + background + ".png")); } LibGuis(String title, ResourceLocation background) { this.title = "guiTitle." + IJCConstants.MOD_PREFIX + title; this.background = background; } public String getUnlocalizedTitle() { return title; } public String getTitle() { return TextHelper.translateToLocal(getUnlocalizedTitle()); } public ResourceLocation getBackground() { return background; } public int getID() { return ordinal(); } public enum LibHuds { AffinityInteraction("AffinityInteraction"); private ResourceLocation texture; LibHuds(String name) { this(new ResourceLocation(IJCConstants.MOD_ID, "textures/guis/huds/" + name + ".png")); } LibHuds(ResourceLocation texture) { this.texture = texture; } public ResourceLocation getTexture() { return texture; } } }