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

@ -209,4 +209,10 @@ public class TEMasterStone extends TileEntity implements IMasterRitualStone
{
return this.zCoord;
}
@Override
public World getWorld()
{
return this.getWorldObj();
}
}

View file

@ -733,6 +733,7 @@ public class TEWritingTable extends TileEntity implements ISidedInventory
if (getStackInSlot(6) == null)
{
if (worldTime % 4 == 0)
{
PacketDispatcher.sendPacketToAllAround(xCoord, yCoord, zCoord, 20, worldObj.provider.dimensionId, getParticlePacket(xCoord, yCoord, zCoord, (short) 1));

View file

@ -1,13 +1,16 @@
package WayofTime.alchemicalWizardry.common.tileEntity.gui;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.client.ClientProxy;
import WayofTime.alchemicalWizardry.client.GuiManual;
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
import WayofTime.alchemicalWizardry.common.tileEntity.container.ContainerTeleposer;
import WayofTime.alchemicalWizardry.common.tileEntity.container.ContainerWritingTable;
import cpw.mods.fml.common.network.IGuiHandler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class GuiHandler implements IGuiHandler
{
@ -34,6 +37,13 @@ public class GuiHandler implements IGuiHandler
{
return new ContainerTeleposer(player.inventory, (TETeleposer) tileEntity);
}
// case 2:
// {
// ItemStack stack = player.getCurrentEquippedItem();
// return new GuiManual(stack, ClientProxy.getManualFromStack(stack));
// }
}
return null;
@ -66,6 +76,12 @@ public class GuiHandler implements IGuiHandler
}
break;
case 2:
{
ItemStack stack = player.getCurrentEquippedItem();
return new GuiManual(stack, ClientProxy.getManualFromStack(stack));
}
}
return null;