Package colonies.src.buildings

Examples of colonies.src.buildings.ContainerColoniesChest


    /** Name entry field */
    protected GuiTextField inputField;
   
    public GuiTownName(TileEntityColoniesChest par1TileEntityColonieChest,InventoryPlayer inventory)
    {
      super(new ContainerColoniesChest(inventory, par1TileEntityColonieChest));
        this.chest = (TileEntityTownHall) par1TileEntityColonieChest;
        this.xSize *= -1;
        this.ySize *= -1;
    }
View Full Code Here


  private IInventory playerInventory;
  private int inventoryRows = 0;

    public GuiColoniesChest (TileEntityColoniesChest teChest,InventoryPlayer _playerInventory) {
            //the container is instantiated and passed to the superclass for handling
            super(new ContainerColoniesChest(_playerInventory, teChest));
            chestInventory = teChest;
            this.inventoryRows = chestInventory.getSizeInventory() / 9;
            this.ySize = 114 + this.inventoryRows * 7;
    }
View Full Code Here

  @Override
  public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
  {
        TileEntity tileEntity = world.getBlockTileEntity(x, y, z);
        if(tileEntity instanceof TileEntityColoniesChest){
                return new ContainerColoniesChest(player.inventory, (TileEntityColoniesChest) tileEntity);
        } else if(tileEntity instanceof TileEntityResearchBlock){
              return new ContainerResearchBlock(player.inventory, (TileEntityResearchBlock) tileEntity);
      }
        return null;
  }
View Full Code Here

TOP

Related Classes of colonies.src.buildings.ContainerColoniesChest

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.