// Path: src/main/java/io/github/zerthick/playershopsrpg/region/Region.java
// @ConfigSerializable
// public interface Region {
// 
//     boolean contains(Vector3i location);
// 
//     String getType();
// 
//     UUID getUUID();
// }


import com.flowpowered.math.vector.Vector3i;
import io.github.zerthick.playershopsrpg.region.Region;
/*
 * Copyright (C) 2016  Zerthick
 *
 * This file is part of PlayerShopsRPG.
 *
 * PlayerShopsRPG is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * PlayerShopsRPG is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with PlayerShopsRPG.  If not, see <http://www.gnu.org/licenses/>.
 */

package io.github.zerthick.playershopsrpg.shop;


public class ShopContainer {

    private Shop shop;
    private Region shopRegion;

    public ShopContainer(Shop shop, Region shopRegion) {
        this.shop = shop;
        this.shopRegion = shopRegion;
    }

    public boolean isShop(Vector3i location) {
       return shopRegion.contains(location);
    }

    public Shop getShop() {
        return shop;
    }

// Path: src/main/java/io/github/zerthick/playershopsrpg/region/Region.java
// @ConfigSerializable
// public interface Region {
// 
//     boolean contains(Vector3i location);
// 
//     String getType();
// 
//     UUID getUUID();
// }


// Path: src/main/java/io/github/zerthick/playershopsrpg/shop/ShopContainer.java
import com.flowpowered.math.vector.Vector3i;
import io.github.zerthick.playershopsrpg.region.Region;

/*
 * Copyright (C) 2016  Zerthick
 *
 * This file is part of PlayerShopsRPG.
 *
 * PlayerShopsRPG is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * PlayerShopsRPG is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with PlayerShopsRPG.  If not, see <http://www.gnu.org/licenses/>.
 */

package io.github.zerthick.playershopsrpg.shop;


public class ShopContainer {

    private Shop shop;
    private Region shopRegion;

    public ShopContainer(Shop shop, Region shopRegion) {
        this.shop = shop;
        this.shopRegion = shopRegion;
    }

    public boolean isShop(Vector3i location) {
       return shopRegion.contains(location);
    }

    public Shop getShop() {
        return shop;
    }

    public Region getShopRegion() {