diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-02-19 17:38:35 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-02-19 17:38:35 +1000 |
commit | 7011e367ac5ccc34473283d6245bc2cec93b835e (patch) | |
tree | cc5675471f1101631bec2cde9713cb9c0004cc8f /src/Java/binnie/craftgui/core/Tooltip.java | |
parent | c68c67d74f39c3eb075ac29e88936a1976ef089b (diff) | |
download | GT5-Unofficial-7011e367ac5ccc34473283d6245bc2cec93b835e.tar.gz GT5-Unofficial-7011e367ac5ccc34473283d6245bc2cec93b835e.tar.bz2 GT5-Unofficial-7011e367ac5ccc34473283d6245bc2cec93b835e.zip |
Removed Hard dependency on gregtech as another Project and added dev versions of all requires libs.
Also started work on GT-EU EnderIO conduits, adding @Optional annotations where possible and a few other nice things.
Diffstat (limited to 'src/Java/binnie/craftgui/core/Tooltip.java')
-rw-r--r-- | src/Java/binnie/craftgui/core/Tooltip.java | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/src/Java/binnie/craftgui/core/Tooltip.java b/src/Java/binnie/craftgui/core/Tooltip.java deleted file mode 100644 index 4afb7f6bc5..0000000000 --- a/src/Java/binnie/craftgui/core/Tooltip.java +++ /dev/null @@ -1,84 +0,0 @@ -package binnie.craftgui.core; - -import java.util.ArrayList; -import java.util.List; -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraftforge.fluids.FluidStack; - -public class Tooltip -{ - public void add(String string) - { - this.tooltip.add(string); - } - - public String getLine(int index) - { - String string = (String)getList().get(index); - return string; - } - - public void add(List list) - { - for (Object obj : list) { - this.tooltip.add((String)obj); - } - } - - List<String> tooltip = new ArrayList(); - - public List<String> getList() - { - return this.tooltip; - } - - public boolean exists() - { - return this.tooltip.size() > 0; - } - - public static enum Type - implements Tooltip.ITooltipType - { - Standard, Help, Information, User, Power; - - private Type() {} - } - - public void setType(ITooltipType type) - { - this.type = type; - } - - ITooltipType type = Type.Standard; - public int maxWidth = 256; - - public void setMaxWidth(int w) - { - this.maxWidth = w; - } - - public ITooltipType getType() - { - return this.type; - } - - public void add(ItemStack item, String string) - { - NBTTagCompound nbt = new NBTTagCompound(); - item.writeToNBT(nbt); - nbt.setByte("nbt-type", (byte)105); - add("~~~" + nbt.toString() + "~~~" + string); - } - - public void add(FluidStack item, String string) - { - NBTTagCompound nbt = new NBTTagCompound(); - item.writeToNBT(nbt); - nbt.setByte("nbt-type", (byte)102); - add("~~~" + nbt.toString() + "~~~" + string); - } - - public static abstract interface ITooltipType {} -} |