org.bukkit.util.BoundingBox Java Examples

The following examples show how to use org.bukkit.util.BoundingBox. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BentoBoxListener.java    From ShopChest with MIT License 6 votes vote down vote up
private void deleteShops(World world, BoundingBox box, UUID vendorUuid) {
    if (!Config.enableBentoBoxIntegration)
        return;
        
    Collection<Shop> shops = plugin.getShopUtils().getShops();
    for (Shop shop : shops) {
        if (!shop.getLocation().getWorld().getName().equals(world.getName())) {
            continue;
        }

        if (vendorUuid != null && !shop.getVendor().getUniqueId().equals(vendorUuid)) {
            continue;
        }

        int x = shop.getLocation().getBlockX();
        int z = shop.getLocation().getBlockZ();
        if (box.contains(x, 0, z)) {
            plugin.getShopUtils().removeShop(shop, true);
        }
    }
}
 
Example #2
Source File: EntityBlock.java    From Modern-LWC with MIT License 4 votes vote down vote up
@Override
public BoundingBox getBoundingBox() {
    return null;
}
 
Example #3
Source File: BlockImpl.java    From Civs with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BoundingBox getBoundingBox() {
    return null;
}
 
Example #4
Source File: WorldImpl.java    From Civs with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Collection<Entity> getNearbyEntities(BoundingBox boundingBox) {
    return null;
}
 
Example #5
Source File: WorldImpl.java    From Civs with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Collection<Entity> getNearbyEntities(BoundingBox boundingBox, Predicate<Entity> predicate) {
    return null;
}
 
Example #6
Source File: DelayedChangeBlock.java    From Skript with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BoundingBox getBoundingBox() {
	return b.getBoundingBox();
}
 
Example #7
Source File: BlockStateBlock.java    From Skript with GNU General Public License v3.0 4 votes vote down vote up
@Override
public BoundingBox getBoundingBox() {
	return state.getBlock().getBoundingBox();
}