Removed redundant book code.
This commit is contained in:
parent
723a8b4a7e
commit
786498e615
36 changed files with 7 additions and 2510 deletions
|
@ -1,17 +1,12 @@
|
|||
package WayofTime.alchemicalWizardry.common.tileEntity.gui;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.ContainerHolding;
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.GuiHolding;
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.InventoryHolding;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.alchemicalWizardry.book.classes.guide.GuiCategories;
|
||||
import WayofTime.alchemicalWizardry.book.classes.guide.GuiEntry;
|
||||
import WayofTime.alchemicalWizardry.book.classes.guide.GuiIndex;
|
||||
import WayofTime.alchemicalWizardry.book.compact.Category;
|
||||
import WayofTime.alchemicalWizardry.book.registries.EntryRegistry;
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.ContainerHolding;
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.GuiHolding;
|
||||
import WayofTime.alchemicalWizardry.common.items.sigil.holding.InventoryHolding;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TETeleposer;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEWritingTable;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.container.ContainerTeleposer;
|
||||
|
@ -82,28 +77,7 @@ public class GuiHandler implements IGuiHandler
|
|||
break;
|
||||
|
||||
case 2:
|
||||
|
||||
if(held.hasTagCompound() && held.getTagCompound().getString("CATEGORY") != null){
|
||||
if(held.hasTagCompound() && held.getTagCompound().getString("KEY") != null && held.getTagCompound().getString("KEY") != "0"){
|
||||
String cate = held.getTagCompound().getString("CATEGORY");
|
||||
String key = held.getTagCompound().getString("KEY");
|
||||
int page = held.getTagCompound().getInteger("PAGE");
|
||||
if(EntryRegistry.categoryMap.containsKey(cate)){
|
||||
Category category = EntryRegistry.categoryMap.get(cate);
|
||||
return new GuiEntry(key, player, category, page);
|
||||
}else{
|
||||
return new GuiCategories(player);
|
||||
}
|
||||
}else if(held.hasTagCompound() && held.getTagCompound().getString("CATEGORY") != null){
|
||||
String cate = held.getTagCompound().getString("CATEGORY");
|
||||
int page = held.getTagCompound().getInteger("PAGE");
|
||||
if(EntryRegistry.categoryMap.containsKey(cate)){
|
||||
Category category = EntryRegistry.categoryMap.get(cate);
|
||||
return new GuiIndex(category, player, page);
|
||||
}
|
||||
}
|
||||
}
|
||||
return new GuiCategories(player);
|
||||
|
||||
|
||||
case 3:
|
||||
return new GuiHolding(player, new InventoryHolding(player.getHeldItem()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue