public boolean getContainer(Container container, InlandShip ship,float tpf, int location) {
        switch (getContainerInt) {
            case 0:
                if ((int) this.getLocalTranslation().x < location) {
                    this.move(tpf * 8 / 3f, 0, 0);
                } else if ((int) this.getLocalTranslation().x > location) {
                    this.move(-tpf * 8 / 3f, 0, 0);
                }
                if ((int) this.getLocalTranslation().x == location) {
                    getContainerInt++;
                }
                break;
            case 1:
                if (timer.counter(240, tpf)) {
                    getContainerInt++;
                    this.attachChild(container);
                    container.setLocalTranslation(7, 13.5f, 3);
                    container.rotate(0, FastMath.PI / 2, 0);
                }
                break;
            case 2:
                if ((int) container.getLocalTranslation().x > -10f) {
                    container.move(-5f / 3f * tpf, 0, 0);

                } else if (timer.counter(240, tpf)) {
                    getContainerInt++;
                    this.detachChild(container);
                    ship.attachContainer(container);                    
                    return true;
                }
                return false;
        }
        return false;
    }