content: package com.infinityraider.agricraft.content.world.greenhouse;
  
  import net.minecraft.core.BlockPos;
  import net.minecraft.util.Tuple;
  import net.minecraft.world.level.ChunkPos;
  
  import java.util.Map;
  import java.util.Set;
  import java.util.stream.Stream;
  
  public class GreenHouseConfiguration {
      private final Set<Tuple<ChunkPos, Map<BlockPos, GreenHouseBlock>>> parts;
      private final GreenHouseProperties properties;
  
      public GreenHouseConfiguration(Set<Tuple<ChunkPos, Map<BlockPos, GreenHouseBlock>>> parts, BlockPos min, BlockPos max, int ceilingCount, int ceilingGlassCount) {
          this.parts = parts;
          this.properties = new GreenHouseProperties(min, max, ceilingCount, ceilingGlassCount);
      }
  
      public Stream<Tuple<ChunkPos, Map<BlockPos, GreenHouseBlock>>> parts() {
          return this.parts.stream();
      }
  
      public GreenHouseProperties getProperties() {
          return this.properties;
      }
  
      public boolean checkGlassRatio() {
          return this.getProperties().hasSufficientGlass();
      }
  }
  