Package micdoodle8.mods.galacticraft.core.inventory

Examples of micdoodle8.mods.galacticraft.core.inventory.SlotSpecific


    }

    @Override
    public Container getResultContainer(EntityPlayer player, int x, int y, int z)
    {
        return new ContainerSchematicTier1Rocket(player.inventory, x, y, z);
    }
View Full Code Here


    public ContainerElectrolyzer(InventoryPlayer par1InventoryPlayer, TileEntityElectrolyzer tileEntity)
    {
        this.tileEntity = tileEntity;

        // Electric Input Slot
        this.addSlotToContainer(new SlotSpecific(tileEntity, 0, 34, 50, ItemElectricBase.class));

        // Input slot
        this.addSlotToContainer(new Slot(tileEntity, 1, 7, 7));

        // 2 output slots
View Full Code Here

    public ContainerLaunchController(InventoryPlayer par1InventoryPlayer, TileEntityLaunchController tileEntity)
    {
        this.tileEntity = tileEntity;
        tileEntity.checkDestFrequencyValid();

        this.addSlotToContainer(new SlotSpecific(tileEntity, 0, 152, 105, ItemElectricBase.class));

        int var6;
        int var7;

        for (var6 = 0; var6 < 3; ++var6)
View Full Code Here

    public ContainerMethaneSynthesizer(InventoryPlayer par1InventoryPlayer, TileEntityMethaneSynthesizer tileEntity)
    {
        this.tileEntity = tileEntity;

        // Electric Input Slot
        this.addSlotToContainer(new SlotSpecific(tileEntity, 0, 53, 53, ItemElectricBase.class));

        // Input slot - hydrogen
        this.addSlotToContainer(new Slot(tileEntity, 1, 7, 7));

        // Input slot - CO2
        this.addSlotToContainer(new Slot(tileEntity, 2, 28, 7));

        // Carbon slot
        this.addSlotToContainer(new SlotSpecific(tileEntity, 3, 28, 53, new ItemStack(MarsItems.carbonFragments, 1, 0)));

        // Output slot
        this.addSlotToContainer(new Slot(tileEntity, 4, 153, 7));
        int var3;
View Full Code Here

    public ContainerGasLiquefier(InventoryPlayer par1InventoryPlayer, TileEntityGasLiquefier tileEntity)
    {
        this.tileEntity = tileEntity;

        // Electric Input Slot
        this.addSlotToContainer(new SlotSpecific(tileEntity, 0, 34, 50, ItemElectricBase.class));

        // Input slot
        this.addSlotToContainer(new Slot(tileEntity, 1, 7, 7));

        // 2 output slots
View Full Code Here

        this.slimelingInventory.openInventory();
    }

    public static void addSlots(ContainerSlimeling container, InventoryPlayer playerInventory, EntitySlimeling slimeling)
    {
        Slot slot = new SlotSpecific(slimeling.slimelingInventory, 1, 9, 30, new ItemStack(MarsItems.marsItemBasic, 1, 4));
        container.addSlotToContainer(slot);

        int var3;

        for (var3 = 0; var3 < 3; ++var3)
View Full Code Here

    public ContainerShortRangeTelepad(InventoryPlayer par1InventoryPlayer, TileEntityShortRangeTelepad tileEntity)
    {
        this.tileEntity = tileEntity;

        this.addSlotToContainer(new SlotSpecific(tileEntity, 0, 152, 105, ItemElectricBase.class));

        int var6;
        int var7;

        for (var6 = 0; var6 < 3; ++var6)
View Full Code Here

    public ContainerTerraformer(InventoryPlayer par1InventoryPlayer, TileEntityTerraformer tileEntity)
    {
        this.tileEntity = tileEntity;

        this.addSlotToContainer(new SlotSpecific(tileEntity, 0, 25, 19, new ItemStack(Items.water_bucket), new ItemStack(Items.bucket)));

        this.addSlotToContainer(new SlotSpecific(tileEntity, 1, 25, 39, ItemElectricBase.class));

        int var6;
        int var7;

        for (var6 = 0; var6 < 3; ++var6)
        {
          List<ItemStack> stacks = new ArrayList<ItemStack>();

            if (var6 == 0)
            {
                stacks.add(new ItemStack(Items.dye, 1, 15));
            }
            else if (var6 == 1)
            {
                if (ContainerTerraformer.saplingList == null)
                {
                  ContainerTerraformer.saplingList = new LinkedList();
                  Iterator iterator = Block.blockRegistry.getKeys().iterator();
               
                  while (iterator.hasNext())
                  {
                      Block b = (Block) Block.blockRegistry.getObject((String)iterator.next());
                      if (b instanceof BlockBush)
                      {
                          try {
                        Item item = Item.getItemFromBlock(b);
                          if (item != null)
                          {
                            //item.getSubItems(item, null, subItemsList); - can't use because clientside only
                            ContainerTerraformer.saplingList.add(new ItemStack(item, 1, 0));
                            String basicName = item.getUnlocalizedName(new ItemStack(item, 1, 0));
                          for (int i = 1; i < 16; i++)
                          {
                            ItemStack testStack = new ItemStack(item, 1, i);
                            String testName = item.getUnlocalizedName(testStack);
                            if (testName == null || testName.equals("") || testName.equals(basicName))
                              break;
                            ContainerTerraformer.saplingList.add(testStack);
                          }                      
                          }
                          } catch (Exception e) { }
                      }
                  }
                }
               
                stacks.addAll(ContainerTerraformer.saplingList);
            }
            else if (var6 == 2)
            {
                stacks.add(new ItemStack(Items.wheat_seeds));
            }

            for (var7 = 0; var7 < 4; ++var7)
            {
                 this.addSlotToContainer(new SlotSpecific(tileEntity, var7 + var6 * 4 + 2, 25 + var7 * 18, 63 + var6 * 24, stacks.toArray(new ItemStack[stacks.size()])));
            }
        }

        for (var6 = 0; var6 < 3; ++var6)
        {
View Full Code Here

        GalacticraftCore.satelliteSpaceStation = (Satellite) new Satellite("spaceStation.overworld").setParentBody(GalacticraftCore.planetOverworld).setRelativeSize(0.2667F).setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(9F, 9F)).setRelativeOrbitTime(1 / 0.05F);
        GalacticraftCore.satelliteSpaceStation.setDimensionInfo(ConfigManagerCore.idDimensionOverworldOrbit, WorldProviderOrbit.class, false).setTierRequired(1);
        GalacticraftCore.satelliteSpaceStation.setBodyIcon(new ResourceLocation(GalacticraftCore.ASSET_PREFIX, "textures/gui/celestialbodies/spaceStation.png"));

        ForgeChunkManager.setForcedChunkLoadingCallback(GalacticraftCore.instance, new ChunkLoadingCallback());
        FMLCommonHandler.instance().bus().register(new ConnectionEvents());

        for (int i = GCItems.fuelCanister.getMaxDamage() - 1; i > 0; i--)
        {
            FluidContainerRegistry.registerFluidContainer(new FluidContainerData(new FluidStack(GalacticraftCore.fluidFuel, GCItems.fuelCanister.getMaxDamage() - i), new ItemStack(GCItems.fuelCanister, 1, i), new ItemStack(GCItems.oilCanister, 1, GCItems.fuelCanister.getMaxDamage())));
        }
View Full Code Here

    {
        super.updateEntity();

        if (!this.worldObj.isRemote && this.ticks % 60 == 0 && this.lastPipeColor != this.getColor())
        {
            GalacticraftCore.packetPipeline.sendToDimension(new PacketDynamic(this), this.worldObj.provider.dimensionId);
            this.lastPipeColor = this.getColor();
        }
    }
View Full Code Here

TOP

Related Classes of micdoodle8.mods.galacticraft.core.inventory.SlotSpecific

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.