Java Code Examples for org.bukkit.util.Vector#minimize()

The following examples show how to use org.bukkit.util.Vector#minimize() . 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: NegativeRegion.java    From CardinalPGM with MIT License 5 votes vote down vote up
@Override
public Vector getMin() {
    Vector min = new Vector(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
    for (RegionModule region : regions) {
        min.minimize(region.getMin());
    }
    return min;
}
 
Example 2
Source File: IntersectRegion.java    From CardinalPGM with MIT License 5 votes vote down vote up
@Override
public Vector getMin() {
    Vector min = new Vector(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
    for (RegionModule region : regions) {
        min.minimize(region.getMin());
    }
    return min;
}
 
Example 3
Source File: UnionRegion.java    From CardinalPGM with MIT License 5 votes vote down vote up
@Override
public Vector getMin() {
    Vector min = new Vector(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
    for (RegionModule region : regions) {
        min.minimize(region.getMin());
    }
    return min;
}
 
Example 4
Source File: ComplementRegion.java    From CardinalPGM with MIT License 5 votes vote down vote up
@Override
public Vector getMin() {
    Vector min = new Vector(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE);
    for (RegionModule region : regions) {
        min.minimize(region.getMin());
    }
    return min;
}