Work on a seeecret project

This commit is contained in:
WayofTime 2014-04-17 07:06:28 -04:00
parent 97b90eaf63
commit 6e4de4f6e9
58 changed files with 3504 additions and 42 deletions

View file

@ -103,9 +103,7 @@ public class EnergyItems extends Item implements IBindable
public static boolean syphonWhileInContainer(ItemStack ist, int damageToBeDone)
{
SoulNetworkHandler.syphonFromNetwork(ist, damageToBeDone);
return true;
return SoulNetworkHandler.syphonFromNetwork(ist, damageToBeDone)!=0;
}
public static boolean canSyphonInContainer(ItemStack ist, int damageToBeDone)

View file

@ -31,13 +31,25 @@ public class SacrificialDagger extends Item
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister)
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:SacrificialDagger");
if(AlchemicalWizardry.wimpySettings)
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:SheathedItem");
}else
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:SacrificialDagger");
}
}
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
{
par3List.add("Just a prick of the");
par3List.add("finger will suffice...");
if(AlchemicalWizardry.wimpySettings)
{
par3List.add(">:(");
}else
{
par3List.add("Just a prick of the");
par3List.add("finger will suffice...");
}
}
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)

View file

@ -0,0 +1,71 @@
package WayofTime.alchemicalWizardry.common.items.books;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemEditableBook;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.nbt.NBTTagString;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.client.GuiManual;
import cpw.mods.fml.client.FMLClientHandler;
public class ItemBloodArchives extends ItemEditableBook
{
public static ItemStack book1Stack;
public ItemBloodArchives(int par1)
{
super(par1);
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
}
public static void initBooks()
{
ItemStack tomeStack = new ItemStack(Item.writableBook);
NBTTagList bookPages = new NBTTagList("pages");
bookPages.appendTag(new NBTTagString("1", "Insert text here."));
bookPages.appendTag(new NBTTagString("2", "Insert moar text here."));
tomeStack.setTagInfo("pages", bookPages);
tomeStack.setTagInfo("author", new NBTTagString("author", "WayofTime"));
tomeStack.setTagInfo("title", new NBTTagString("title", "Blood Book"));
tomeStack.itemID = Item.writtenBook.itemID;
book1Stack = tomeStack.copy();
}
@Override
public ItemStack onItemRightClick (ItemStack stack, World world, EntityPlayer player)
{
player.openGui(AlchemicalWizardry.instance, 2, world, 0, 0, 0);
//FMLClientHandler.instance().displayGuiScreen(player, new GuiManual(stack, getData(stack)));
/*Side side = FMLCommonHandler.instance().getEffectiveSide();
if (side.isClient())
FMLClientHandler.instance().displayGuiScreen(player, new GuiManual(player.getCurrentEquippedItem(), getManualFromStack(stack)));*/
return stack;
}
// @Override
// @SideOnly(Side.CLIENT)
// public void getSubItems(int id, CreativeTabs creativeTab, List list)
// {
// list.add(book1Stack);
// }
// private BookData getData (ItemStack stack)
// {
// switch (stack.getItemDamage())
// {
// case 0:
// return TProxyClient.manualData.beginner;
// case 1:
// return TProxyClient.manualData.toolStation;
// case 2:
// return TProxyClient.manualData.smeltery;
// default:
// return TProxyClient.manualData.diary;
// }
// }
}