mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-29 18:28:34 +01:00
Added some descriptions to the booklet, fixed issues with it
This commit is contained in:
parent
c4b4637439
commit
64b27cfb8d
13 changed files with 171 additions and 53 deletions
|
@ -13,7 +13,7 @@ import java.util.List;
|
||||||
public class GuiConfiguration extends GuiConfig{
|
public class GuiConfiguration extends GuiConfig{
|
||||||
|
|
||||||
public GuiConfiguration(GuiScreen parentScreen){
|
public GuiConfiguration(GuiScreen parentScreen){
|
||||||
super(parentScreen, getConfigElements(), ModUtil.MOD_ID, true, true, ModUtil.NAME);
|
super(parentScreen, getConfigElements(), ModUtil.MOD_ID, false, false, ModUtil.NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<IConfigElement> getConfigElements(){
|
private static List<IConfigElement> getConfigElements(){
|
||||||
|
|
|
@ -12,34 +12,50 @@ import ellpeck.actuallyadditions.util.Util;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.init.Items;
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.item.crafting.IRecipe;
|
||||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||||
|
|
||||||
public class BlockCrafting{
|
public class BlockCrafting{
|
||||||
|
|
||||||
|
public static IRecipe recipeSmileyCloud;
|
||||||
|
public static IRecipe recipePhantomface;
|
||||||
|
public static IRecipe recipeLiquiface;
|
||||||
|
public static IRecipe recipeEnergyface;
|
||||||
|
public static IRecipe recipePhantomBreaker;
|
||||||
|
public static IRecipe recipePhantomPlacer;
|
||||||
|
public static IRecipe recipeBreaker;
|
||||||
|
public static IRecipe recipePlacer;
|
||||||
|
public static IRecipe recipeLiquidPlacer;
|
||||||
|
public static IRecipe recipeLiquidCollector;
|
||||||
|
|
||||||
public static void init(){
|
public static void init(){
|
||||||
|
|
||||||
//Smiley Cloud
|
//Smiley Cloud
|
||||||
if(ConfigCrafting.CLOUD.isEnabled())
|
if(ConfigCrafting.CLOUD.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockSmileyCloud),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockSmileyCloud),
|
||||||
" W ", "WXW", " W ",
|
" W ", "WXW", " W ",
|
||||||
'W', new ItemStack(Blocks.wool, 1, Util.WILDCARD),
|
'W', new ItemStack(Blocks.wool, 1, Util.WILDCARD),
|
||||||
'X', new ItemStack(InitItems.itemSpecialDrop, 1, TheSpecialDrops.SOLIDIFIED_EXPERIENCE.ordinal())));
|
'X', new ItemStack(InitItems.itemSpecialDrop, 1, TheSpecialDrops.SOLIDIFIED_EXPERIENCE.ordinal())));
|
||||||
|
recipeSmileyCloud = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Compost
|
//Compost
|
||||||
if(ConfigCrafting.COMPOST.isEnabled())
|
if(ConfigCrafting.COMPOST.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCompost),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCompost),
|
||||||
"W W", "W W", "WCW",
|
"W W", "W W", "WCW",
|
||||||
'W', "plankWood",
|
'W', "plankWood",
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal())));
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//XP Solidifier
|
//XP Solidifier
|
||||||
if(ConfigCrafting.XP_SOLIDIFIER.isEnabled())
|
if(ConfigCrafting.XP_SOLIDIFIER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockXPSolidifier),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockXPSolidifier),
|
||||||
"XXX", "DCD", "XXX",
|
"XXX", "DCD", "XXX",
|
||||||
'X', new ItemStack(InitItems.itemSpecialDrop, 1, TheSpecialDrops.SOLIDIFIED_EXPERIENCE.ordinal()),
|
'X', new ItemStack(InitItems.itemSpecialDrop, 1, TheSpecialDrops.SOLIDIFIED_EXPERIENCE.ordinal()),
|
||||||
'D', "blockDiamond",
|
'D', "blockDiamond",
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Charcoal Block
|
//Charcoal Block
|
||||||
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()),
|
GameRegistry.addRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()),
|
||||||
|
@ -49,160 +65,187 @@ public class BlockCrafting{
|
||||||
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()));
|
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.CHARCOAL_BLOCK.ordinal()));
|
||||||
|
|
||||||
//Wood Casing
|
//Wood Casing
|
||||||
if(ConfigCrafting.WOOD_CASING.isEnabled())
|
if(ConfigCrafting.WOOD_CASING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
||||||
"WSW", "SRS", "WSW",
|
"WSW", "SRS", "WSW",
|
||||||
'W', "plankWood",
|
'W', "plankWood",
|
||||||
'R', "logWood",
|
'R', "logWood",
|
||||||
'S', "stickWood"));
|
'S', "stickWood"));
|
||||||
|
}
|
||||||
|
|
||||||
//Ender Casing
|
//Ender Casing
|
||||||
if(ConfigCrafting.ENDER_CASING.isEnabled())
|
if(ConfigCrafting.ENDER_CASING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal()),
|
||||||
"WSW", "SRS", "WSW",
|
"WSW", "SRS", "WSW",
|
||||||
'W', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
'W', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
||||||
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
||||||
'S', Blocks.obsidian));
|
'S', Blocks.obsidian));
|
||||||
|
}
|
||||||
|
|
||||||
//Phantom Booster
|
//Phantom Booster
|
||||||
if(ConfigCrafting.PHANTOM_BOOSTER.isEnabled())
|
if(ConfigCrafting.PHANTOM_BOOSTER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomBooster),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomBooster),
|
||||||
"RDR", "DCD", "RDR",
|
"RDR", "DCD", "RDR",
|
||||||
'R', "dustRedstone",
|
'R', "dustRedstone",
|
||||||
'D', "gemDiamond",
|
'D', "gemDiamond",
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Coffee Machine
|
//Coffee Machine
|
||||||
if(ConfigCrafting.COFFEE_MACHINE.isEnabled())
|
if(ConfigCrafting.COFFEE_MACHINE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCoffeeMachine),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCoffeeMachine),
|
||||||
" C ", " S ", "A A",
|
" C ", " S ", "A A",
|
||||||
'C', InitItems.itemCoffeeBean,
|
'C', InitItems.itemCoffeeBean,
|
||||||
'S', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'S', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'A', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal())));
|
'A', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Energizer
|
//Energizer
|
||||||
if(ConfigCrafting.ENERGIZER.isEnabled())
|
if(ConfigCrafting.ENERGIZER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockEnergizer),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockEnergizer),
|
||||||
"I I", "CAC", "I I",
|
"I I", "CAC", "I I",
|
||||||
'I', "ingotIron",
|
'I', "ingotIron",
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'A', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal())));
|
'A', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Energizer
|
//Energizer
|
||||||
if(ConfigCrafting.ENERVATOR.isEnabled())
|
if(ConfigCrafting.ENERVATOR.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockEnervator),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockEnervator),
|
||||||
" I ", "CAC", " I ",
|
" I ", "CAC", " I ",
|
||||||
'I', "ingotIron",
|
'I', "ingotIron",
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'A', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal())));
|
'A', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Lava Factory
|
//Lava Factory
|
||||||
if(ConfigCrafting.LAVA_FACTORY.isEnabled())
|
if(ConfigCrafting.LAVA_FACTORY.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockLavaFactoryController),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockLavaFactoryController),
|
||||||
"SCS", "ISI", "LLL",
|
"SCS", "ISI", "LLL",
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'I', "blockIron",
|
'I', "blockIron",
|
||||||
'L', Items.lava_bucket));
|
'L', Items.lava_bucket));
|
||||||
|
}
|
||||||
|
|
||||||
//Casing
|
//Casing
|
||||||
if(ConfigCrafting.CASING.isEnabled())
|
if(ConfigCrafting.CASING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 32, TheMiscBlocks.LAVA_FACTORY_CASE.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 32, TheMiscBlocks.LAVA_FACTORY_CASE.ordinal()),
|
||||||
"ICI",
|
"ICI",
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'I', "blockIron"));
|
'I', "blockIron"));
|
||||||
|
}
|
||||||
|
|
||||||
//Canola Press
|
//Canola Press
|
||||||
if(ConfigCrafting.CANOLA_PRESS.isEnabled())
|
if(ConfigCrafting.CANOLA_PRESS.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCanolaPress),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCanolaPress),
|
||||||
"CHC", "CDC", "CRC",
|
"CHC", "CDC", "CRC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'H', Blocks.hopper,
|
'H', Blocks.hopper,
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())));
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Ore Magnet
|
//Ore Magnet
|
||||||
if(ConfigCrafting.ORE_MAGNET.isEnabled())
|
if(ConfigCrafting.ORE_MAGNET.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockOreMagnet),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockOreMagnet),
|
||||||
"SSS", "CBC", "ISI",
|
"SSS", "CBC", "ISI",
|
||||||
'S', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.LAVA_FACTORY_CASE.ordinal()),
|
'S', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.LAVA_FACTORY_CASE.ordinal()),
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'B', new ItemStack(InitItems.itemBatteryDouble),
|
'B', new ItemStack(InitItems.itemBatteryDouble),
|
||||||
'I', new ItemStack(Blocks.iron_block)));
|
'I', new ItemStack(Blocks.iron_block)));
|
||||||
|
}
|
||||||
|
|
||||||
//Fermenting Barrel
|
//Fermenting Barrel
|
||||||
if(ConfigCrafting.FERMENTING_BARREL.isEnabled())
|
if(ConfigCrafting.FERMENTING_BARREL.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFermentingBarrel),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFermentingBarrel),
|
||||||
"CHC", "CDC", "CRC",
|
"CHC", "CDC", "CRC",
|
||||||
'C', "logWood",
|
'C', "logWood",
|
||||||
'H', Blocks.hopper,
|
'H', Blocks.hopper,
|
||||||
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())));
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Phantomface
|
//Phantomface
|
||||||
if(ConfigCrafting.PHANTOMFACE.isEnabled())
|
if(ConfigCrafting.PHANTOMFACE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomface),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomface),
|
||||||
" C ", "EBE", " S ",
|
" C ", "EBE", " S ",
|
||||||
'E', Items.ender_eye,
|
'E', Items.ender_eye,
|
||||||
'C', Blocks.chest,
|
'C', Blocks.chest,
|
||||||
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'B', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
'B', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
||||||
|
recipePhantomface = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Phantom Placer
|
//Phantom Placer
|
||||||
if(ConfigCrafting.PHANTOM_PLACER.isEnabled())
|
if(ConfigCrafting.PHANTOM_PLACER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitBlocks.blockPhantomPlacer),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitBlocks.blockPhantomPlacer),
|
||||||
InitBlocks.blockPlacer,
|
InitBlocks.blockPlacer,
|
||||||
InitBlocks.blockPhantomface));
|
InitBlocks.blockPhantomface));
|
||||||
|
recipePhantomPlacer = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Phantom Breaker
|
//Phantom Breaker
|
||||||
if(ConfigCrafting.PHANTOM_BREAKER.isEnabled())
|
if(ConfigCrafting.PHANTOM_BREAKER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitBlocks.blockPhantomBreaker),
|
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(InitBlocks.blockPhantomBreaker),
|
||||||
InitBlocks.blockBreaker,
|
InitBlocks.blockBreaker,
|
||||||
InitBlocks.blockPhantomface));
|
InitBlocks.blockPhantomface));
|
||||||
|
recipePhantomBreaker = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Phantom Energyface
|
//Phantom Energyface
|
||||||
if(ConfigCrafting.PHANTOM_ENERGYFACE.isEnabled())
|
if(ConfigCrafting.PHANTOM_ENERGYFACE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomEnergyface),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomEnergyface),
|
||||||
" R ", "RFR", " R ",
|
" R ", "RFR", " R ",
|
||||||
'R', "dustRedstone",
|
'R', "dustRedstone",
|
||||||
'F', InitBlocks.blockPhantomface));
|
'F', InitBlocks.blockPhantomface));
|
||||||
|
recipeEnergyface = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Phantom Liquiface
|
//Phantom Liquiface
|
||||||
if(ConfigCrafting.PHANTOM_LIQUIFACE.isEnabled())
|
if(ConfigCrafting.PHANTOM_LIQUIFACE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomLiquiface),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPhantomLiquiface),
|
||||||
"RFR",
|
"RFR",
|
||||||
'R', Items.bucket,
|
'R', Items.bucket,
|
||||||
'F', InitBlocks.blockPhantomface));
|
'F', InitBlocks.blockPhantomface));
|
||||||
|
recipeLiquiface = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Liquid Placer
|
//Liquid Placer
|
||||||
if(ConfigCrafting.LIQUID_PLACER.isEnabled())
|
if(ConfigCrafting.LIQUID_PLACER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidPlacer),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidPlacer),
|
||||||
"RFR",
|
"RFR",
|
||||||
'R', Items.bucket,
|
'R', Items.bucket,
|
||||||
'F', InitBlocks.blockPlacer));
|
'F', InitBlocks.blockPlacer));
|
||||||
|
recipeLiquidPlacer = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Liquid Breaker
|
//Liquid Breaker
|
||||||
if(ConfigCrafting.LIQUID_BREAKER.isEnabled())
|
if(ConfigCrafting.LIQUID_BREAKER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidCollector),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFluidCollector),
|
||||||
"RFR",
|
"RFR",
|
||||||
'R', Items.bucket,
|
'R', Items.bucket,
|
||||||
'F', InitBlocks.blockBreaker));
|
'F', InitBlocks.blockBreaker));
|
||||||
|
recipeLiquidCollector = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Oil Generator
|
//Oil Generator
|
||||||
if(ConfigCrafting.OIL_GENERATOR.isEnabled())
|
if(ConfigCrafting.OIL_GENERATOR.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockOilGenerator),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockOilGenerator),
|
||||||
"CRC", "CBC", "CRC",
|
"CRC", "CBC", "CRC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'B', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())));
|
'B', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Coal Generator
|
//Coal Generator
|
||||||
if(ConfigCrafting.COAL_GENERATOR.isEnabled())
|
if(ConfigCrafting.COAL_GENERATOR.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCoalGenerator),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockCoalGenerator),
|
||||||
"CRC", "CBC", "CRC",
|
"CRC", "CBC", "CRC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'R', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'B', new ItemStack(Items.coal, 1, Util.WILDCARD)));
|
'B', new ItemStack(Items.coal, 1, Util.WILDCARD)));
|
||||||
|
}
|
||||||
|
|
||||||
//Enderpearl Block
|
//Enderpearl Block
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal()),
|
||||||
|
@ -212,12 +255,13 @@ public class BlockCrafting{
|
||||||
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDERPEARL_BLOCK.ordinal())));
|
||||||
|
|
||||||
//Stone Casing
|
//Stone Casing
|
||||||
if(ConfigCrafting.STONE_CASING.isEnabled())
|
if(ConfigCrafting.STONE_CASING.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
"WSW", "SRS", "WSW",
|
"WSW", "SRS", "WSW",
|
||||||
'W', "cobblestone",
|
'W', "cobblestone",
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()),
|
||||||
'S', "stickWood"));
|
'S', "stickWood"));
|
||||||
|
}
|
||||||
|
|
||||||
//Quartz Block
|
//Quartz Block
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ.ordinal()),
|
||||||
|
@ -225,23 +269,25 @@ public class BlockCrafting{
|
||||||
'Q', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal())));
|
'Q', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal())));
|
||||||
|
|
||||||
//Fishing Net
|
//Fishing Net
|
||||||
if(ConfigCrafting.FISHING_NET.isEnabled())
|
if(ConfigCrafting.FISHING_NET.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFishingNet),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFishingNet),
|
||||||
"SSS", "SDS", "SSS",
|
"SSS", "SDS", "SSS",
|
||||||
'D', "gemDiamond",
|
'D', "gemDiamond",
|
||||||
'S', Items.string));
|
'S', Items.string));
|
||||||
|
}
|
||||||
|
|
||||||
//Repairer
|
//Repairer
|
||||||
if(ConfigCrafting.REPAIRER.isEnabled())
|
if(ConfigCrafting.REPAIRER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockItemRepairer),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockItemRepairer),
|
||||||
"DID", "OCO", "DID",
|
"DID", "OCO", "DID",
|
||||||
'D', "gemDiamond",
|
'D', "gemDiamond",
|
||||||
'I', "ingotIron",
|
'I', "ingotIron",
|
||||||
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'O', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ENDER_CASING.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Solar Panel
|
//Solar Panel
|
||||||
if(ConfigCrafting.SOLAR_PANEL.isEnabled())
|
if(ConfigCrafting.SOLAR_PANEL.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFurnaceSolar),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFurnaceSolar),
|
||||||
"IQI", "CDC", "IBI",
|
"IQI", "CDC", "IBI",
|
||||||
'D', "blockDiamond",
|
'D', "blockDiamond",
|
||||||
|
@ -249,9 +295,10 @@ public class BlockCrafting{
|
||||||
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'B', new ItemStack(Blocks.iron_bars)));
|
'B', new ItemStack(Blocks.iron_bars)));
|
||||||
|
}
|
||||||
|
|
||||||
//Heat Collector
|
//Heat Collector
|
||||||
if(ConfigCrafting.HEAT_COLLECTOR.isEnabled())
|
if(ConfigCrafting.HEAT_COLLECTOR.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockHeatCollector),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockHeatCollector),
|
||||||
"BRB", "CDC", "BQB",
|
"BRB", "CDC", "BQB",
|
||||||
'D', "gemDiamond",
|
'D', "gemDiamond",
|
||||||
|
@ -260,6 +307,7 @@ public class BlockCrafting{
|
||||||
'L', new ItemStack(Items.lava_bucket),
|
'L', new ItemStack(Items.lava_bucket),
|
||||||
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
'C', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
|
||||||
'B', new ItemStack(Blocks.iron_bars)));
|
'B', new ItemStack(Blocks.iron_bars)));
|
||||||
|
}
|
||||||
|
|
||||||
//Quartz Pillar
|
//Quartz Pillar
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ_PILLAR.ordinal()),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.QUARTZ_PILLAR.ordinal()),
|
||||||
|
@ -287,7 +335,7 @@ public class BlockCrafting{
|
||||||
}
|
}
|
||||||
|
|
||||||
//Crusher
|
//Crusher
|
||||||
if(ConfigCrafting.CRUSHER.isEnabled())
|
if(ConfigCrafting.CRUSHER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGrinder),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGrinder),
|
||||||
"CFC", "DQD", "CFC",
|
"CFC", "DQD", "CFC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
|
@ -295,9 +343,10 @@ public class BlockCrafting{
|
||||||
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'Q', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'P', new ItemStack(Blocks.piston),
|
'P', new ItemStack(Blocks.piston),
|
||||||
'F', new ItemStack(Items.flint)));
|
'F', new ItemStack(Items.flint)));
|
||||||
|
}
|
||||||
|
|
||||||
//Double Crusher
|
//Double Crusher
|
||||||
if(ConfigCrafting.DOUBLE_CRUSHER.isEnabled())
|
if(ConfigCrafting.DOUBLE_CRUSHER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGrinderDouble),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGrinderDouble),
|
||||||
"CDC", "RFR", "CDC",
|
"CDC", "RFR", "CDC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
|
@ -305,9 +354,10 @@ public class BlockCrafting{
|
||||||
'R', InitBlocks.blockGrinder,
|
'R', InitBlocks.blockGrinder,
|
||||||
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'P', new ItemStack(Blocks.piston)));
|
'P', new ItemStack(Blocks.piston)));
|
||||||
|
}
|
||||||
|
|
||||||
//Double Furnace
|
//Double Furnace
|
||||||
if(ConfigCrafting.COMPOST.isEnabled())
|
if(ConfigCrafting.COMPOST.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFurnaceDouble),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFurnaceDouble),
|
||||||
"CDC", "RFR", "CDC",
|
"CDC", "RFR", "CDC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
|
@ -315,55 +365,64 @@ public class BlockCrafting{
|
||||||
'R', new ItemStack(Blocks.furnace),
|
'R', new ItemStack(Blocks.furnace),
|
||||||
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
'F', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
|
||||||
'P', "ingotBrick"));
|
'P', "ingotBrick"));
|
||||||
|
}
|
||||||
|
|
||||||
//Feeder
|
//Feeder
|
||||||
if(ConfigCrafting.DOUBLE_FURNACE.isEnabled())
|
if(ConfigCrafting.DOUBLE_FURNACE.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFeeder),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockFeeder),
|
||||||
"WCW", "DHD", "WCW",
|
"WCW", "DHD", "WCW",
|
||||||
'W', "plankWood",
|
'W', "plankWood",
|
||||||
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'D', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'C', new ItemStack(Items.golden_carrot),
|
'C', new ItemStack(Items.golden_carrot),
|
||||||
'H', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal())));
|
'H', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
//Giant Chest
|
//Giant Chest
|
||||||
if(ConfigCrafting.GIANT_CHEST.isEnabled())
|
if(ConfigCrafting.GIANT_CHEST.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGiantChest),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGiantChest),
|
||||||
"CWC", "WDW", "CWC",
|
"CWC", "WDW", "CWC",
|
||||||
'C', new ItemStack(Blocks.chest),
|
'C', new ItemStack(Blocks.chest),
|
||||||
'D', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
'D', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.WOOD_CASING.ordinal()),
|
||||||
'W', "plankWood"));
|
'W', "plankWood"));
|
||||||
|
}
|
||||||
|
|
||||||
//Greenhouse Glass
|
//Greenhouse Glass
|
||||||
if(ConfigCrafting.GREENHOUSE_GLASS.isEnabled())
|
if(ConfigCrafting.GREENHOUSE_GLASS.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGreenhouseGlass, 3),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockGreenhouseGlass, 3),
|
||||||
"GSG", "SDS", "GSG",
|
"GSG", "SDS", "GSG",
|
||||||
'G', "blockGlass",
|
'G', "blockGlass",
|
||||||
'D', Blocks.obsidian,
|
'D', Blocks.obsidian,
|
||||||
'S', "treeSapling"));
|
'S', "treeSapling"));
|
||||||
|
}
|
||||||
|
|
||||||
//Placer
|
//Placer
|
||||||
if(ConfigCrafting.PLACER.isEnabled())
|
if(ConfigCrafting.PLACER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPlacer),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockPlacer),
|
||||||
"CCC", "CRP", "CCC",
|
"CCC", "CRP", "CCC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'P', Blocks.piston));
|
'P', Blocks.piston));
|
||||||
|
recipePlacer = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Breaker
|
//Breaker
|
||||||
if(ConfigCrafting.BREAKER.isEnabled())
|
if(ConfigCrafting.BREAKER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockBreaker),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockBreaker),
|
||||||
"CCC", "CRP", "CCC",
|
"CCC", "CRP", "CCC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()),
|
||||||
'P', Items.iron_pickaxe));
|
'P', Items.iron_pickaxe));
|
||||||
|
recipeBreaker = Util.lastIRecipe();
|
||||||
|
}
|
||||||
|
|
||||||
//Dropper
|
//Dropper
|
||||||
if(ConfigCrafting.DROPPER.isEnabled())
|
if(ConfigCrafting.DROPPER.isEnabled()){
|
||||||
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockDropper),
|
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockDropper),
|
||||||
"CCC", "CDR", "CCC",
|
"CCC", "CDR", "CCC",
|
||||||
'C', "cobblestone",
|
'C', "cobblestone",
|
||||||
'D', Blocks.dropper,
|
'D', Blocks.dropper,
|
||||||
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
'R', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal())));
|
||||||
|
}
|
||||||
|
|
||||||
if(ConfigCrafting.LAMPS.isEnabled()){
|
if(ConfigCrafting.LAMPS.isEnabled()){
|
||||||
for(int i = 0; i < BlockColoredLamp.allLampTypes.length; i++){
|
for(int i = 0; i < BlockColoredLamp.allLampTypes.length; i++){
|
||||||
|
|
|
@ -4,7 +4,7 @@ import cpw.mods.fml.common.network.IGuiHandler;
|
||||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||||
import ellpeck.actuallyadditions.ActuallyAdditions;
|
import ellpeck.actuallyadditions.ActuallyAdditions;
|
||||||
import ellpeck.actuallyadditions.inventory.gui.*;
|
import ellpeck.actuallyadditions.inventory.gui.*;
|
||||||
import ellpeck.actuallyadditions.inventory.gui.lexicon.GuiBooklet;
|
import ellpeck.actuallyadditions.inventory.gui.booklet.GuiBooklet;
|
||||||
import ellpeck.actuallyadditions.tile.TileEntityBase;
|
import ellpeck.actuallyadditions.tile.TileEntityBase;
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.StringUtil;
|
import ellpeck.actuallyadditions.util.StringUtil;
|
||||||
|
@ -8,6 +8,7 @@ public class BookletChapter{
|
||||||
public final IBookletPage[] pages;
|
public final IBookletPage[] pages;
|
||||||
private final String unlocalizedName;
|
private final String unlocalizedName;
|
||||||
public final BookletIndexEntry entry;
|
public final BookletIndexEntry entry;
|
||||||
|
public int openPage;
|
||||||
|
|
||||||
public BookletChapter(String unlocalizedName, BookletIndexEntry entry, IBookletPage... pages){
|
public BookletChapter(String unlocalizedName, BookletIndexEntry entry, IBookletPage... pages){
|
||||||
this.pages = pages.clone();
|
this.pages = pages.clone();
|
|
@ -1,4 +1,4 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.StringUtil;
|
import ellpeck.actuallyadditions.util.StringUtil;
|
|
@ -1,4 +1,4 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.ReflectionHelper;
|
import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||||
import ellpeck.actuallyadditions.achievement.InitAchievements;
|
import ellpeck.actuallyadditions.achievement.InitAchievements;
|
|
@ -1,4 +1,4 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
@ -164,7 +164,7 @@ public class GuiBooklet extends GuiScreen{
|
||||||
int actualButton = button.id-CHAPTER_BUTTONS_START;
|
int actualButton = button.id-CHAPTER_BUTTONS_START;
|
||||||
if(this.currentIndexEntry != null){
|
if(this.currentIndexEntry != null){
|
||||||
if(this.currentChapter == null){
|
if(this.currentChapter == null){
|
||||||
if(actualButton < InitBooklet.entries.size()){
|
if(actualButton < this.currentIndexEntry.chapters.size()){
|
||||||
this.openChapter(currentIndexEntry.chapters.get(actualButton));
|
this.openChapter(currentIndexEntry.chapters.get(actualButton));
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
public interface IBookletPage{
|
public interface IBookletPage{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
|
import ellpeck.actuallyadditions.crafting.BlockCrafting;
|
||||||
import ellpeck.actuallyadditions.crafting.FoodCrafting;
|
import ellpeck.actuallyadditions.crafting.FoodCrafting;
|
||||||
import ellpeck.actuallyadditions.items.InitItems;
|
import ellpeck.actuallyadditions.items.InitItems;
|
||||||
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
||||||
|
@ -11,9 +12,15 @@ public class InitBooklet{
|
||||||
|
|
||||||
public static ArrayList<BookletIndexEntry> entries = new ArrayList<BookletIndexEntry>();
|
public static ArrayList<BookletIndexEntry> entries = new ArrayList<BookletIndexEntry>();
|
||||||
|
|
||||||
|
public static BookletIndexEntry entryFunctionalNonRF = new BookletIndexEntry("functionalNoRF");
|
||||||
public static BookletIndexEntry entryMisc = new BookletIndexEntry("misc");
|
public static BookletIndexEntry entryMisc = new BookletIndexEntry("misc");
|
||||||
|
|
||||||
static{
|
static{
|
||||||
|
new BookletChapter("cloud", entryMisc, new PageText(1), new PageCrafting(2, BlockCrafting.recipeSmileyCloud));
|
||||||
new BookletChapter("foods", entryMisc, new PageCrafting(1, FoodCrafting.recipePizza), new PageFurnace(2, new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE_BREAD.ordinal())), new PageCrafting(3, FoodCrafting.recipeHamburger), new PageCrafting(4, FoodCrafting.recipeBigCookie), new PageCrafting(5, FoodCrafting.recipeSubSandwich), new PageCrafting(6, FoodCrafting.recipeFrenchFry), new PageCrafting(7, FoodCrafting.recipeFrenchFries), new PageCrafting(8, FoodCrafting.recipeFishNChips), new PageCrafting(9, FoodCrafting.recipeCheese), new PageCrafting(10, FoodCrafting.recipePumpkinStew), new PageCrafting(11, FoodCrafting.recipeCarrotJuice), new PageCrafting(12, FoodCrafting.recipeSpaghetti), new PageCrafting(13, FoodCrafting.recipeNoodle), new PageCrafting(14, FoodCrafting.recipeChocolate), new PageCrafting(15, FoodCrafting.recipeChocolateCake), new PageCrafting(16, FoodCrafting.recipeToast), new PageFurnace(17, new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal())));
|
new BookletChapter("foods", entryMisc, new PageCrafting(1, FoodCrafting.recipePizza), new PageFurnace(2, new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE_BREAD.ordinal())), new PageCrafting(3, FoodCrafting.recipeHamburger), new PageCrafting(4, FoodCrafting.recipeBigCookie), new PageCrafting(5, FoodCrafting.recipeSubSandwich), new PageCrafting(6, FoodCrafting.recipeFrenchFry), new PageCrafting(7, FoodCrafting.recipeFrenchFries), new PageCrafting(8, FoodCrafting.recipeFishNChips), new PageCrafting(9, FoodCrafting.recipeCheese), new PageCrafting(10, FoodCrafting.recipePumpkinStew), new PageCrafting(11, FoodCrafting.recipeCarrotJuice), new PageCrafting(12, FoodCrafting.recipeSpaghetti), new PageCrafting(13, FoodCrafting.recipeNoodle), new PageCrafting(14, FoodCrafting.recipeChocolate), new PageCrafting(15, FoodCrafting.recipeChocolateCake), new PageCrafting(16, FoodCrafting.recipeToast), new PageFurnace(17, new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal())));
|
||||||
|
|
||||||
|
new BookletChapter("breaker", entryFunctionalNonRF, new PageCrafting(1, BlockCrafting.recipeBreaker), new PageCrafting(2, BlockCrafting.recipePlacer), new PageCrafting(3, BlockCrafting.recipeLiquidPlacer), new PageCrafting(4, BlockCrafting.recipeLiquidCollector));
|
||||||
|
new BookletChapter("phantomfaces", entryFunctionalNonRF, new PageText(1), new PageCrafting(2, BlockCrafting.recipePhantomface), new PageCrafting(3, BlockCrafting.recipeLiquiface), new PageCrafting(4, BlockCrafting.recipeEnergyface));
|
||||||
|
new BookletChapter("phantomBreaker", entryFunctionalNonRF, new PageText(1), new PageCrafting(2, BlockCrafting.recipePhantomPlacer), new PageCrafting(3, BlockCrafting.recipePhantomBreaker));
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,8 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.ReflectionHelper;
|
import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||||
import ellpeck.actuallyadditions.util.Util;
|
import ellpeck.actuallyadditions.util.Util;
|
||||||
|
import net.minecraft.client.renderer.RenderHelper;
|
||||||
import net.minecraft.client.renderer.entity.RenderItem;
|
import net.minecraft.client.renderer.entity.RenderItem;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.crafting.IRecipe;
|
import net.minecraft.item.crafting.IRecipe;
|
||||||
|
@ -77,8 +78,9 @@ public class PageCrafting extends PageText{
|
||||||
|
|
||||||
int xShowOutput = gui.guiLeft+28+82;
|
int xShowOutput = gui.guiLeft+28+82;
|
||||||
int yShowOutput = gui.guiTop+23+20;
|
int yShowOutput = gui.guiTop+23+20;
|
||||||
|
RenderHelper.disableStandardItemLighting();
|
||||||
RenderItem.getInstance().renderItemAndEffectIntoGUI(gui.unicodeRenderer, gui.mc.getTextureManager(), recipe.getRecipeOutput(), xShowOutput, yShowOutput);
|
RenderItem.getInstance().renderItemAndEffectIntoGUI(gui.unicodeRenderer, gui.mc.getTextureManager(), recipe.getRecipeOutput(), xShowOutput, yShowOutput);
|
||||||
|
RenderHelper.enableStandardItemLighting();
|
||||||
for(int i = 0; i < 2; i++){
|
for(int i = 0; i < 2; i++){
|
||||||
boolean tooltip = i == 1;
|
boolean tooltip = i == 1;
|
||||||
for(int x = 0; x < width; x++){
|
for(int x = 0; x < width; x++){
|
||||||
|
@ -89,7 +91,9 @@ public class PageCrafting extends PageText{
|
||||||
int yShow = gui.guiTop+23+y*21;
|
int yShow = gui.guiTop+23+y*21;
|
||||||
if(!tooltip){
|
if(!tooltip){
|
||||||
if(stack.getItemDamage() == Util.WILDCARD) stack.setItemDamage(0);
|
if(stack.getItemDamage() == Util.WILDCARD) stack.setItemDamage(0);
|
||||||
|
RenderHelper.disableStandardItemLighting();
|
||||||
RenderItem.getInstance().renderItemAndEffectIntoGUI(gui.unicodeRenderer, gui.mc.getTextureManager(), stack, xShow, yShow);
|
RenderItem.getInstance().renderItemAndEffectIntoGUI(gui.unicodeRenderer, gui.mc.getTextureManager(), stack, xShow, yShow);
|
||||||
|
RenderHelper.enableStandardItemLighting();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(mouseX >= xShow && mouseX <= xShow+16 && mouseY >= yShow && mouseY <= yShow+16){
|
if(mouseX >= xShow && mouseX <= xShow+16 && mouseY >= yShow && mouseY <= yShow+16){
|
||||||
|
@ -100,7 +104,6 @@ public class PageCrafting extends PageText{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mouseX >= xShowOutput && mouseX <= xShowOutput+16 && mouseY >= yShowOutput && mouseY <= yShowOutput+16){
|
if(mouseX >= xShowOutput && mouseX <= xShowOutput+16 && mouseY >= yShowOutput && mouseY <= yShowOutput+16){
|
||||||
gui.renderToolTip(recipe.getRecipeOutput(), mouseX, mouseY);
|
gui.renderToolTip(recipe.getRecipeOutput(), mouseX, mouseY);
|
||||||
}
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
|
import net.minecraft.client.renderer.RenderHelper;
|
||||||
import net.minecraft.client.renderer.entity.RenderItem;
|
import net.minecraft.client.renderer.entity.RenderItem;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||||
|
@ -42,7 +43,9 @@ public class PageFurnace extends PageText{
|
||||||
int xShow = gui.guiLeft+37+1+x*40;
|
int xShow = gui.guiLeft+37+1+x*40;
|
||||||
int yShow = gui.guiTop+20+20;
|
int yShow = gui.guiTop+20+20;
|
||||||
if(!tooltip){
|
if(!tooltip){
|
||||||
|
RenderHelper.disableStandardItemLighting();
|
||||||
RenderItem.getInstance().renderItemAndEffectIntoGUI(gui.unicodeRenderer, gui.mc.getTextureManager(), stack, xShow, yShow);
|
RenderItem.getInstance().renderItemAndEffectIntoGUI(gui.unicodeRenderer, gui.mc.getTextureManager(), stack, xShow, yShow);
|
||||||
|
RenderHelper.enableStandardItemLighting();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(mouseX >= xShow && mouseX <= xShow+16 && mouseY >= yShow && mouseY <= yShow+16){
|
if(mouseX >= xShow && mouseX <= xShow+16 && mouseY >= yShow && mouseY <= yShow+16){
|
|
@ -1,4 +1,4 @@
|
||||||
package ellpeck.actuallyadditions.inventory.gui.lexicon;
|
package ellpeck.actuallyadditions.inventory.gui.booklet;
|
||||||
|
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import ellpeck.actuallyadditions.util.StringUtil;
|
import ellpeck.actuallyadditions.util.StringUtil;
|
||||||
|
@ -24,7 +24,7 @@ public class PageText implements IBookletPage{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getText(){
|
public String getText(){
|
||||||
return StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".chapter."+this.chapter.getUnlocalizedName()+".text."+this.id+".name");
|
return StringUtil.localize("booklet."+ModUtil.MOD_ID_LOWER+".chapter."+this.chapter.getUnlocalizedName()+".text."+this.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
|
@ -245,6 +245,8 @@ tooltip.actuallyadditions.codeName.desc=Code Name
|
||||||
tooltip.actuallyadditions.baseUnlocName.desc=Item's Unlocalized Name
|
tooltip.actuallyadditions.baseUnlocName.desc=Item's Unlocalized Name
|
||||||
tooltip.actuallyadditions.unlocName.desc=Meta's Unlocalized Name
|
tooltip.actuallyadditions.unlocName.desc=Meta's Unlocalized Name
|
||||||
tooltip.actuallyadditions.disablingInfo.desc=If you don't want this Information |to appear, disable it in the |Actually Additions Config!
|
tooltip.actuallyadditions.disablingInfo.desc=If you don't want this Information |to appear, disable it in the |Actually Additions Config!
|
||||||
|
tooltip.actuallyadditions.ctrlForMoreInfo.desc=Press CTRL for Advanced Info
|
||||||
|
tooltip.actuallyadditions.extraInfo.desc=Advanced Info
|
||||||
tile.actuallyadditions.blockXPSolidifier.name=Experience Solidifier
|
tile.actuallyadditions.blockXPSolidifier.name=Experience Solidifier
|
||||||
tooltip.actuallyadditions.blockPhantomRange.desc=Range
|
tooltip.actuallyadditions.blockPhantomRange.desc=Range
|
||||||
tile.actuallyadditions.blockFlax.name=Flax Plant
|
tile.actuallyadditions.blockFlax.name=Flax Plant
|
||||||
|
@ -359,3 +361,46 @@ achievement.actuallyadditions.craftPhantomEnergyface=Watch out! It's powered!
|
||||||
achievement.actuallyadditions.craftPhantomEnergyface.desc=Craft a Phantom Energyface
|
achievement.actuallyadditions.craftPhantomEnergyface.desc=Craft a Phantom Energyface
|
||||||
achievement.actuallyadditions.openTreasureChest=You almost drowned!!
|
achievement.actuallyadditions.openTreasureChest=You almost drowned!!
|
||||||
achievement.actuallyadditions.openTreasureChest.desc=Open a Treasure Chest underwater
|
achievement.actuallyadditions.openTreasureChest.desc=Open a Treasure Chest underwater
|
||||||
|
|
||||||
|
booklet.actuallyadditions.indexEntry.misc.name=Miscellaneous
|
||||||
|
booklet.actuallyadditions.indexEntry.functionalNoRF.name=Functional Blocks (No RF use)
|
||||||
|
|
||||||
|
booklet.actuallyadditions.chapter.foods.name=Food
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.1=A Pizza is round, delicious and tastes of tomatoes, cheese and deliciousness. Yum!
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.2=Rice Bread is made in a furnace from rice dough, which can be made from rice. It tastes of a combination of rice and bread. Because that's what it is, I guess.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.3=It's hammy, and it's burgr'y, and it makes you want to sing, it's a Haaaaaaamuuuuurgeeeeeer *cough* It's from a german city: Hamburg! ...You learn something new every day.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.4=Reminds me of something. Hmmm... Subway?
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.5=Reminds me of something. Hmmm... Wubsay?
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.6=A pity it isn't waving a white flaaaaaaaaa.. flake. Of corn. A white cornflake.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.7=Or chips, if you're not american!
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.8=It's a paper container filled with fries and fish. What more could you want?
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.9=Someone might reeeeally like this.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.10=I somehow have a weird song stuck in my head where someone just repeatedly goes "Pumpkin pumpkin pumpkin blur, pumpkin blur, pumpkin blur"...
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.11=It's like Tomato Juice, only that you don't always get it on a plane.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.12=It's a bowl with 3 noodles in it. It must be a really big bowl, I guess.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.13=THERE are those noodles! I've been searching for them for ages!
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.14=Lari likes.
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.15=It's chocolate cake. Who wouldn't like it!?
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.16=It's Toast. What more could I say?
|
||||||
|
booklet.actuallyadditions.chapter.foods.text.17=Dough gets cooked into Baguette in a Furnace and can then join the french fries on their mission to achieve something or another.
|
||||||
|
|
||||||
|
booklet.actuallyadditions.chapter.cloud.name=Smiley Cloud
|
||||||
|
booklet.actuallyadditions.chapter.cloud.text.1=A Smiley Cloud is a neat little block that you can put down in the world. When in place, it will hover around across the ground, though staying on the block you placed it in. When right-clicking the cloud, it will open a GUI that enables you to change its name, and thus, its appearance if you do it right. On the next page, you can find some examples you can try out.
|
||||||
|
booklet.actuallyadditions.chapter.cloud.text.2=The Crafting Recipe is shown above. If you want to know what certain name changes do, try naming a cloud "Ellpeck", "Glenthor" or "AcidBlues".
|
||||||
|
|
||||||
|
booklet.actuallyadditions.chapter.phantomfaces.name=Phantomfaces
|
||||||
|
booklet.actuallyadditions.chapter.phantomfaces.text.1=A Phantomface is a block that you can connect to any inventory by using a Phantom Connector. When connected, the phantomface will act as if it was the corresponding inventory, accepting Items from pipes and hoppers and having items be able to get pulled out of the face (the same applies for energyfaces with RF and liquifaces with fluids.) a Phantomfaces has a default range of 15 blocks that can be enlarged with Phantom Boosters.
|
||||||
|
booklet.actuallyadditions.chapter.phantomfaces.text.2=The normal Phantomface can connect to inventories like chests and furnaces, transfering Items into and out of them.
|
||||||
|
booklet.actuallyadditions.chapter.phantomfaces.text.3=The Phantom Liquiface can connect to tanks and such, allowing all types of liquids to be pumped through. Giving it a Redstone Signal will cause it to auto-output.
|
||||||
|
booklet.actuallyadditions.chapter.phantomfaces.text.4=The Phantom Energyface can connect to things like generators and crushers, allowing for RF to flow through them into and out of machines.
|
||||||
|
|
||||||
|
booklet.actuallyadditions.chapter.phantomBreaker.name=Phantom Breakers & Placers
|
||||||
|
booklet.actuallyadditions.chapter.phantomBreaker.text.1=Phantom Breakers and Placers have very similar mechanics to Phantomfaces: They can be connected to Blocks via Phantom Connectors and interact with the environment. Phantom Breakers and Placers only have a range of 3 blocks, however, in which they can destroy and place blocks in connected places. Shift-right-clicking will supply you with information about the connection, right-clicking normally will open its interface.
|
||||||
|
booklet.actuallyadditions.chapter.phantomBreaker.text.2=The Phantom Placer places Blocks that you supply it with.
|
||||||
|
booklet.actuallyadditions.chapter.phantomBreaker.text.3=The Phantom Placer breaks blocks and stores them in its internal inventory.
|
||||||
|
|
||||||
|
booklet.actuallyadditions.chapter.breaker.name=(Fluid) Placers & Breakers
|
||||||
|
booklet.actuallyadditions.chapter.breaker.text.1=The Breaker breaks Blocks in front of it and stores them in its internal inventory. That's it.
|
||||||
|
booklet.actuallyadditions.chapter.breaker.text.2=The Placer places Blocks that it has stored in its internal inventory in the world. Amazing.
|
||||||
|
booklet.actuallyadditions.chapter.breaker.text.3=The Fluid Placer places liquids that you supply it with, if they have a block, in the world.
|
||||||
|
booklet.actuallyadditions.chapter.breaker.text.4=The Fluid Collector collects liquids in front of it and stores them in its tank.
|
Loading…
Reference in a new issue