public Section(Location location,Location location2){
  this.minX=Math.min(location.getBlockX(),location2.getBlockX());
  this.minY=Math.min(location.getBlockY(),location2.getBlockY());
  this.minZ=Math.min(location.getBlockZ(),location2.getBlockZ());
  this.maxX=Math.max(location.getBlockX(),location2.getBlockX());
  this.maxY=Math.max(location.getBlockY(),location2.getBlockY());
  this.maxZ=Math.max(location.getBlockZ(),location2.getBlockZ());
  this.world=location.getWorld();
}

public Section ( Location location , Location location2 ) { this . minX = Math . min ( location . getBlockX ( ) , location2 . getBlockX ( ) ) ; this . minY = Math . min ( location . getBlockY ( ) , location2 . getBlockY ( ) ) ; this . minZ = Math . min ( location . getBlockZ ( ) , location2 . getBlockZ ( ) ) ; this . maxX = Math . max ( location . getBlockX ( ) , location2 . getBlockX ( ) ) ; this . maxY = Math . max ( location . getBlockY ( ) , location2 . getBlockY ( ) ) ; this . maxZ = Math . max ( location . getBlockZ ( ) , location2 . getBlockZ ( ) ) ; this . world = location . getWorld ( ) ; }
initializes the data members of this class . the minimum and maximum points are created so we get a rectangular region .
