Changed Metallurgic Infuser infuse system to use icons for textures

This commit is contained in:
aidancbrady committed 2016-01-29 17:47:41 -07:00
1 parent 06dc2227f2
commit 88cfee2ab2
14 files changed
+55 -64

No files matched your search

@@ -1,6 +1,6 @@
package mekanism.api.infuse;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.IIcon;
import net.minecraft.util.StatCollector;
/**
@@ -13,29 +13,29 @@ public final class InfuseType
/** The name of this infusion */
public String name;
/** The location of this infuse's GUI texture */
public ResourceLocation texture;
/** The infuse's GUI texture X offset. */
public int texX;
/** The infuse's GUI texture Y offset. */
public int texY;
/** This infuse GUI's icon */
public IIcon icon;
/** The location of this infuse GUI's icon */
public String textureLocation;
/** The unlocalized name of this type. */
public String unlocalizedName;
public InfuseType(String s, ResourceLocation location, int x, int y)
public InfuseType(String s, String tex)
{
name = s;
texture = location;
texX = x;
texY = y;
textureLocation = tex;
}
public void setIcon(IIcon i)
{
icon = i;
}
public InfuseType setUnlocalizedName(String name)
{
unlocalizedName = name;
unlocalizedName = "infuse." + name;
return this;
}