package micdoodle8.mods.galacticraft.planets.mars.schematic;
import micdoodle8.mods.galacticraft.api.recipe.ISchematicPage;
import micdoodle8.mods.galacticraft.core.Constants;
import micdoodle8.mods.galacticraft.core.GCItems;
import micdoodle8.mods.galacticraft.planets.GuiIdsPlanets;
import micdoodle8.mods.galacticraft.planets.mars.ConfigManagerMars;
import micdoodle8.mods.galacticraft.planets.mars.client.gui.GuiSchematicTier2Rocket;
import micdoodle8.mods.galacticraft.planets.mars.inventory.ContainerSchematicTier2Rocket;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class SchematicTier2Rocket implements ISchematicPage
{
@Override
public int getPageID()
{
return ConfigManagerMars.idSchematicRocketT2;
}
@Override
public int getGuiID()
{
return GuiIdsPlanets.NASA_WORKBENCH_TIER_2_ROCKET + Constants.MOD_ID_PLANETS.hashCode();
}
@Override
public ItemStack getRequiredItem()
{
return new ItemStack(GCItems.schematic, 1, 1);
}
@SideOnly(Side.CLIENT)
@Override
public GuiScreen getResultScreen(EntityPlayer player, BlockPos pos)
{
return new GuiSchematicTier2Rocket(player.inventory, pos);
}
@Override
public Container getResultContainer(EntityPlayer player, BlockPos pos)
{
return new ContainerSchematicTier2Rocket(player.inventory, pos);
}
@Override
public int compareTo(ISchematicPage o)
{
if (this.getPageID() > o.getPageID())
{
return 1;
}
else
{
return -1;
}
}
}