src/main/java/com/github/klikli_dev/occultism/util/BiomeUtil.java
/**
     * Checks if the given biome contains any of the given biome types.
     *
     * @param biome    the biome
     * @param typeList the biome type list to check
     * @return true if the bimoe contains any of the given biome types.
     */
Checks if the given biome contains any of the given biome types.
@param biome    the biome
@param typeList the biome type list to check
@return true if the bimoe contains any of the given biome types.
Checks if the given biome contains any of the given biome types . @param biome the biome @param typeList the biome type list to check @return true if the bimoe contains any of the given biome types .
public static boolean containsType(RegistryKey<Biome> biome, List<BiomeDictionary.Type> typeList) {
        Set<BiomeDictionary.Type> biomeTypes = BiomeDictionary.getTypes(biome);
        for (BiomeDictionary.Type type : typeList)
            if (biomeTypes.contains(type))
                return true;
        return false;
    }
public static boolean containsType ( RegistryKey < Biome > biome , List < BiomeDictionary . Type > typeList ) { Set < BiomeDictionary . Type > biomeTypes = BiomeDictionary . getTypes ( biome ) ; for ( BiomeDictionary . Type type : typeList ) if ( biomeTypes . contains ( type ) ) return true ; return false ; }
Checks if the given biome contains any of the given biome types.
Checks if the given biome contains any of the given biome types .